I need to create a table made up of pizza prices obtained programmatically from an array along with an order form. I did that part ok. However, upon submitting the order the script must run again and generate a recipt for purchase indicating the kind of pizza, size, price, tax and total. So all code must be obtained in the same script. This is the part I’m having a problem with. I cannot create another PHP file to place in the form action. Please help. Below is my code thus far. Thank you
Pizza Central
<?php $prices = array( array("Plain", "$3.50", "6.25", "$8.00"), array("Vegetarian", "$4.35", "$7.60", "$12.00"), array("Pepperoni", "$7.25", "$10.75", "$14.00"), array("Hawaiian", "$8.00", "$12.50", "$15.50"), ); ?>Type of Pizza | Small | Medium | Large |
---|---|---|---|
$item | "; } echo '
PLACE YOUR ORDER
<br><input type="submit"
value="Place your order"><br>