I have a script which displays a table full of products with textfields beside each product. When I submit these products I have another script which confirms the choices. I'm having trouble displaying the total price of the products.
while($row = mysql_fetch_array($result)) {
// Place All Products Into Table
echo "<tr><td>".$row[ "product_name"]."</td>";
echo "<td>".$row[ "unit_price"]."</td>";
echo "<td>".$row[ "units_in_stock"]."</td>";
echo "<td><input type= \"text\" name= \"text_id[]\" size =\"5\" value=\" \" ></td>";
echo "<td><input type= \"hidden\" name= \"text_id[]\" size =\"5\" value=\"" .$row["product_name"]. "\" ></td>";
echo "<td><input type= \"hidden\" name= \"text_id[]\" size =\"5\" value=\"" .$row["unit_price"]. "\" ></td>";
echo "</tr>";
} // End While Loop