Hi guys, I have a simple form that takes a search input and fires it off to page1.php:
<form method="post" action="page1.php"><input name="title" id="title" type="text" value="" /> <input type="submit" name="search" value="Search" /></form>
I would like to be able to select which page the query is fired off to based on a dropdown menu:
<form method="post" action="page1.php"><input name="title" id="title" type="text" value="" />
<select name="dropdown"><option value="1">Page1<option value="2">Page2<option value="3">Page3<option value="4">Page4</select>
<input type="submit" name="search" value="Search" /></form>
Can you please tell me how to alter that second set of code so that it will go to page2.php or page3.php etc depending on which value is selected from the dropdown?