lupes
09-04-2007, 04:51 PM
Hi,
I searched the forums and found a few people asking this but i didn't understand any responses.
I have a simple form with a drop down
<form name="test" action="">
<select name="change">
<option value="page1.htm">page1</option>
<option value="page2.htm">page2</option>
<option value="page3.htm">page3</option>
</select>
<input name="submit" type="submit" value="submit" />
</form>
I'd like the form action to change depending on the option selected.
If page 1 is selected then the form action would be 'page1.htm'
If page 2 is selected then the form action would be 'page2.htm' and so on.
Can someone please help me by explaining how i'd do this.
Thanks in advance.
I searched the forums and found a few people asking this but i didn't understand any responses.
I have a simple form with a drop down
<form name="test" action="">
<select name="change">
<option value="page1.htm">page1</option>
<option value="page2.htm">page2</option>
<option value="page3.htm">page3</option>
</select>
<input name="submit" type="submit" value="submit" />
</form>
I'd like the form action to change depending on the option selected.
If page 1 is selected then the form action would be 'page1.htm'
If page 2 is selected then the form action would be 'page2.htm' and so on.
Can someone please help me by explaining how i'd do this.
Thanks in advance.