http500 error occurred after PHP submitted form
Novice, just contact PHP, trouble you Big God
HTML section
<title>Popcorn Sales</title>
PHP Program
<title>Process the popcorn.html form</title>
$unpop =$_post["UnPop"];
$caramel =$_post["Caramel"];
$caramelnut =$_post["Caramelnut"];
$toffeynut =$_post["Toffeynut"];
$name =$_post["name"];
$street =$_post["Street"];
$city =$_post["City"];
$payment =$_post["Payment"];
if ($unpop = = "") $unpop = 0;
if ($caramel = = "") $caramel = 0;
if ($caramelnut = = "") $caramelnut = 0;
if ($toffeynut = = "") $toffeynut = 0;
$unpop _cost=3.0* $unpop;
$caramel _cost=3.5* $caramel;
$caramelnut _cost=4.5* $caramelnut;
$toffeynut _cost=5.0* $toffeynut;
$total _price= $unpop _cost+ $caramel _cost+ $caramelnut _cost+ $toffeynut _cost;
$total _items= $unpop + $caramel + $caramelnut + $toffeynut;
?>
Customer:
Print ("$name
$street
$city
");
?>
Order information
Product |
Unit price |
Quantity Ordered |
Item cost |
unpopped Popcorn |
$ |
!--? php print ("$unpop"),?--> |
!--? php printf ("$%4.2f", $unpop _cost);?--" |
Caramel Popcorn |
$3:50 |
!--? php print ("$caramel");?--> |
!--? php printf ("$%4.2f", $caramel _cost),?--" |
Caramel Nut Popco RN |
$4:50 |
!--? php print ("$caramelnut"),?--> |
!--? php printf ("$%4.2f", $car Amelnut_cost);?--> |
Toffey Nut popcorn |
$5:00 |
!--? p HP print ("$toffeynut"),?--> |
!--? php printf ("$%4.2f", $toffeynut _cost);?--" |