I have a form that sends the value of my input box to search.php where I cature it using POST:
<form method="post" name="boxsearchform" action="search.php"> <input name="INPUT" id="INPUT" type="text" value="" /> <input type="image" name="search" src="searchboxgo.gif" /> <select name="choosevar"> <option value="title">Title</option> <option value="colour">Colour</option> </select> </form>
Is this possible?
On search.php I will then use
$title = $_POST['title']; $colour = $_POST['colour'];
to capture either variable no matter which one is sent.