hi, i am running into a problem and need your help. I extract ARRAY from MYSQL database that has following 2 fields: item & price
How do i do to compute TOTAL price when for all selected items so that i can pass TOTAL price as a hidden field to the next php script? unfornately, i don't know javascripts.
example:
item1 $3
item2 $5
if item 1 & 2 are selected are selected, then TOTAL price is $8.
<form>
while($row=array_fetch_assoc($result))
{
$item = $row["item"];
$price = $row["price"];
.
.
<input type="checkbox" name"item[]" value="$item">
.
.
.
}
</form>
thank you for helping