CSCI 297 Scripting Languages
Homework Four

Write a PHP script to process the form below. Required functionality:
⇒ For any errors, such as not entering their name and address, print an appropriate error message.
⇒ Add 9 percent tax.
⇒ Show an itemized receipt.
If you want an extra challenge (not required):
⇒ Align the columns on your receipt (hint: table or div).

Joe's Sandwich Shop
Online Order Form

Name:
Address:

Peanut Butter and Jelly - $2.00
Ham and Cheese - $3.50
Turkey - $3.00
Grilled Cheese - $3.50


<form method="post" action="hw04.php">

<h3 align="center">
      Joe's Sandwich Shop<br>Online Order Form
</h3>

Name: <input type="text" name="name"><br>
Address: <input type="text" name="address">

<p>
<input type="text" name="PBJ" value="0"> Peanut Butter and Jelly - $2.00 <br>
<input type="text" name="Ham" value="0"> Ham and Cheese - $3.50 <br>
<input type="text" name="Turkey" value="0"> Turkey - $3.00 <br>
<input type="text" name="Grilled" value="0"> Grilled Cheese - $3.50 <br>
<P>
<input type="submit" value="Send Me Some Eats">
</form>


Be sure to add a link on your deltona homepage. Submit your homework by mailing the text of your script (not the HTML file) to dannellys@winthrop.edu. Use the subject line "CSCI 297 - HW 04".