PDA

View Full Version : building new url on the fly....


TarHeelTom
01-11-2006, 04:13 AM
In a site under construction, I have several places where I use a state drop down select menu. Would like to use the same option list as an include on several different pages. The result of this select is a two letter state name abbreviation.

1. Can I use this two letters as a variable and generate a url with it to call the next page?

2. Can I send this variable to the next page to use it to generate a url on the next page?

Thanks

Tom

konithomimo
01-11-2006, 05:50 PM
1. Yes. That is as simple as getting the value/text from the select option

2. Yes. The easiest ways are to add the variable to the query string, or to use a cookie.

TarHeelTom
01-12-2006, 01:13 AM
Can you refer me to some simple code examples somewhere to get me started down this path?

Tom