Jetheat
17 Feb 2006, 10:50 AM
I have a drop down box with several options but when the user selects an option, I want them to be forwarded automatically to a url for that option.
How do I do that?
Here is the form:
<form name="form1" method="post" action="">
<select name="select">
<option selected>Please select one...</option>
<option value="http://www.mysite.com/mailonsunday">Mail on Sunday</option>
<option value="http://www.mysite.com/standard">Evening Standard</option>
<option value="http://www.mysite.com/metro">Metro</option>
<option value="http://www.mysite.com/standard">Standard Lite</option>
</select>
</form>
I'm sure the coding is wrong atthe moment but how do I forward people to the url in each case?
JH
How do I do that?
Here is the form:
<form name="form1" method="post" action="">
<select name="select">
<option selected>Please select one...</option>
<option value="http://www.mysite.com/mailonsunday">Mail on Sunday</option>
<option value="http://www.mysite.com/standard">Evening Standard</option>
<option value="http://www.mysite.com/metro">Metro</option>
<option value="http://www.mysite.com/standard">Standard Lite</option>
</select>
</form>
I'm sure the coding is wrong atthe moment but how do I forward people to the url in each case?
JH