Ok, I hope I got the code right so far, if it is, now I need to connect to database.
I created the process.php file with this info:
<?php
echo $_POST['my_textbox'];
echo $_POST['my_dropdown'];
//The name of these post variables is the same as the name
//of the elements that were in the form
?>
This is the search (live) htt://www.lawfour/esr/search.php
I added the JS right under the form post info.
<form name="thisForm" method="POST" action="process.php">
<SCRIPT LANGUAGE="javascript">
function validate() {
fm = document.thisForm
//use validation here to make sure the user entered
//the information correctly
fm.submit()
}
</SCRIPT>
<table width="30%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="7%" class="verdana_login">Search:</td>
<td width="8%">
<input type="text" name="my_textbox" size="10">
</td>
<td width="12%">
<select name="my_dropdown">
<option>Airgas Tickets</option>
<option>Products</option>
<option >Pending Repairs</option>
<option selected>Common Equip.</option>
<option >Lab Equip.</option>
<option >Vendors</option>
<option >RTP's</option>
</select>
</td>
<td width="13%" align="center"> <INPUT type=image name="btm_submit" src="http://www.lawfour.com/esr/images/go.gif" border="0" width="35" height="22" onclick="validate()"></td>
</table>