PDA

View Full Version : input box to url


bobbie
04-09-2006, 04:26 AM
I want to add a zip code to the use if this and then go to the page.
sText = Input.GetText("Input1");
Web.LoadURL("Web1", "http://www.wunderground.com/cgi-bin/findweather/getForecast?query="sText");
But I keep getting errors .
I had this saved someplace and now I can't find it. grrrr
The sText would be the zipcode if that is right to use?
Thanks for any help here.

Corey
04-09-2006, 04:30 AM
Try this:

sText = Input.GetText("Input1");
Web.LoadURL("Web1", "http://www.wunderground.com/cgi-bin/findweather/getForecast?query="..sText);

bobbie
04-09-2006, 04:35 AM
Thanks Corey, that did the trick.

Corey
04-09-2006, 04:56 AM
Cheers. :)

playmenow
04-09-2006, 03:00 PM
A shorter way:
Web.LoadURL("Web1", "http://www.wunderground.com/cgi-bin/findweather/getForecast?query="..Input.GetText("Input1"));
;)