onChange Select did not display?
Posted: Wed Nov 14, 2012 12:00 am
Hi all,
please help -> what should the possible wrong in this part: since when i select the the list and it work okay. but after load the form the selected name is did not display and it return in default "Select Supplier".
and also i already get the value if the id=> 
please help -> what should the possible wrong in this part: since when i select the the list and it work okay. but after load the form the selected name is did not display and it return in default "Select Supplier".
Code: Select all
echo "<select name= 'product' onchange = 'reload(this.form)'> <option value = ''>Select Supplier..</option>";
while($row_select_p = mysql_fetch_array($SQL_QUERY_PRODUCT_))
{
if($row_select_p['supplier_id']== @$product)
{
echo "<option value = '$row_select_p[supplier_id]'>$row_select_p[supplier_name]</option>";
}
else{echo "<option value = '$row_select_p[supplier_id]'>$row_select_p[supplier_name]</option>";}
}
echo "</select>";
