I want to make a form and redirect user to a specific url mentionned in the select value.
This is my form :
<form>
<select name="url" >
<option value="http://www.google.com/">Google</option>
<option value="http://www.bing.com/">Bing</option>
</select>
<input name="name" type="text" placeholder="Name" />
<input name="age" type="text" placeholder="Age" />
<button type="submit">Go</button>
</form>
For example, if the user click on "Go" when "Page2" is selected, he will be redirected to page "http://www.example.com/page2" ("Name" and "Age" values will be transferred to this page).
Just like this code :
<select name="jumpit" onchange="document.location.href=this.value">
<option selected value="">Make a Selection</option>
<option value="http://www.google.com/">Google</option>
<option value="http://www.bing.com">Bing</option>
</select>
except that i need the redirection to be done after the submit button click not onchange select.
That's all. Thanks !