Hi,
I have a simple form:
I want to submit the form to "page1.php" if user select "Yes", or submit the form to "page2.php" if user select "No", how can I write the javascript to verify the value and submit to its respective page? thanks very much.
I have a simple form:
Code:
<form name="info" method="post" action="page1.php">
<select name="sel">
<option>Yes</option>
<option>No</option>
<input type="submit" name="submit">
I want to submit the form to "page1.php" if user select "Yes", or submit the form to "page2.php" if user select "No", how can I write the javascript to verify the value and submit to its respective page? thanks very much.