Hello, this is hopefully a very easy one for you guys, but as a beginner I'm not sure how to do this correctly:
I have a form
<form method="post" name="boxsearchform" action="search.php"><input name="title" id= "title" type="text" value="" /><input type="image" name="search" src="go.gif" /></form>
that passes the variable of "title" to search.php. On search.php I use
$myvar = $_POST['title']; to get that variable, and use it further down the page.
How can I add a dropdown box to my first page so that instead of searching by the variable title, I can search by the variable colour?
The user would be able to select from a dropdown of either colour or title before pressing the submit button, and the php would capture the appropriate variable on the search.php page.