<select name="item2" id="item2" onchange="getPrice(this.id)" />
<option value="">Select medicine</option>
<?php
$sql = "SELECT ItemID, ItemName, Price FROM itemavail ORDER BY ItemName";
$rs = mysql_query($sql);
while($row = mysql_fetch_array($rs))
{
echo "<option value=\"".$row['Price']."\">".$row['ItemName']."</option> \n ";
}
?>
</select>
this is selection menu to get item name. Here i need to get Item ID according to what user select from the selection menu.
(here im already exacting Price from this selection menu. thn i cant change value of this options)
plz someone help me to get rid from this... thk u.