I am trying to make drop down stick in my php. Below is my code, can some one help me to make it sticky. I am tried and lost. I have two dropdown in the form, each pulls data from mysql with condition OnChange(),
Code:
<script language="JavaScript">
function autoSubmit()
{
var formObject = document.forms['theForm'];
formObject.submit();
}
</script>
<form name="theForm" method="post">
<?
$code_query = "select customer_code from customer";
$result = mysql_query($code_query);
?>
<select name= "combo_customer_code" OnChange="autoSubmit();" >
<option size =50 </option>
<?
while($nt=mysql_fetch_array($result)){
$code = $nt['customer_code'];
echo '<option value="' .$nt['customer_code']. '">'. $nt['customer_code']. '</option>';
}
?>
Comment