I want to create an array from fields in a form - the form is thus..
<form action="handle_calc_2.php" method="post">
input type="text" name="prod[]" value="shampoo" size="15" />shampoo
input type="text" name="price[ ]" value="15.00" size="5" />
input type="text" name="quantity[ ]" size="5" />
THE PHP ---------------------------
$products = array (
array ('name' => $POST[prod], 'price'=> $POST[price], 'quantity' => $_POST[quantity])
);
print " $product[name] at $product[price] quantity ordered $product[quantity]<br /><br />";
I want the quantity added by the user to parse as $quantity and then add a total.
Where am I going wrong please
many thanks in advance.
Cybertooth Tiger😕