Please excuse my ignorance. What I know about JavaScript would fit on the back of a postage stamp...I'm making an Ajax-powered livesearch for my site by modifying an existing script written by someone who knows more about it than I.
I want to pass the values $q and $database to my PHP script via this javascript/ajax form. It works, but the value of "database" from the select isn't passed across. How do I do this?
<form action="livesearch_results.php" method="GET" target="searchWindow">
<input type="hidden" name="submitted" value="submit"/>
<input type="text" name="q" id="q" size="15" onkeyup="loadXMLDoc('livesearch_results.php?q='+this.value)" style="width:250px; " />
<select name="database" >
<option value="news">in news</option>
<option value="articles">in articles</option>
</select>
<div align="left" id="searchResult" name="searchResult"
style="font-family:Tahoma, Verdana; font-size:11px; width:300px; padding:3px; "></div>
</form>
Any suggestions would be extremely grateful!
Many thanks in advance!
Matt