I'm pulling some values out of a mySQL database but I wish the value to be submitted without pressing the relevant Submit button. The process is similar to Macromedia's Jump Menus except I can't configure the Javascript. All I want is to remove the submit button. The Macromedia code is below:
Thanxinadvance
Pete Jones
<script language="JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<form name="form1">
<select name="menu1" onChange="MM_jumpMenu('parent',this,0)">
<option value="page" selected>option1</option>
<option value="page">option2</option>
</select>
</form>
My current PHP code is:
<?
// Counties drop down form
?>
<form action="refinecounty.php3" method="GET">
<h3>.....refine your search further by selecting a County.</h3>
<select name="county">
<option value="">Select a County</option>
<?
while($rows=mysql_fetch_array($sql_result2)) {
print $rows["CountyName"];
?>
<p><option value="<? echo $rows["CountyId"]?>"> <?echo $rows["CountyName"]?> </option>
<?
}
?>
</select>