<select name="item8" id="item8" onchange="getPrice(this.id)" />
<option value="" >Select here</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']."\n ";
}
?>
</span>
</div>
</select>
im using this code to make selection field. Here i want to get a Item ID when selecting Item. bt i cant change that Price as the "value=" of the Option. because i need value as a price for the bill counting. here i use another text field to enter quantity of item. here i need is when user select item and enter quantity Item table should be deduct that quantity from item table quantity.. please HELp mee..