Would like to post the value of a dynamic selection menu when the OnChange event is called. My code is currently this:
<form action="test4.php" method="POST" name="itemform">
<select name="input_name" id="input_name" onChange="this.form.submit();">
<?php
while($row = mysql_fetch_array($result))
echo "<option value='".$row['item_id']."'>" . $row['itemname'] . "</option>";
?>
</form>
The option values are populated by a query defined above and that works like a charm. The problem I am facing is for some reason the form is not grabbing and POSTing the value selected in the menu box when the OnChange event is raised. Any Ideas?