IT 202 - Web and Multimedia Technology

Lab 10 - Fall 2007

Due: Thursday 11/8/2007 by 11:59 pm.

For lab this week, we want to write an HTML page and a PHP page that will allow a user to "make" on on-line purchase and print out a receipt.

The HTML page (which is to be called "lab10.html") will have the user enter their Name and Address, allow the user to select some number of 4 different products.

The HTML page should look similar to:

Enter Delivery Information:
Name:
Street:
City:
State:
Zip:

Enter Purchase Amount:
ItemCostNumber of Items to Purchase
Microware Popcorn$15 each
Caramel Popcorn$20 each
Cheese Popcorn$18 each
Popcorn Kernels$10 each

When the Submit Order button is pressed, you should display the PHP reciept page (which should be called "lab10.php") that will display the order submitted. The receipt should only list those items that have actually been ordered (the user entered a number greater than zero). Your page must include how many of each items were ordered, the cost of each item ordered, the amount spent on each item and the total amount due. Your page could look as follows:

IT 202 POPCORN COMPANY

To:Terry Jones
123 Main St.
Chicago
IL
60606
Thank you for your order of:
ItemCostNumber OrderedTotal Cost
Microware Popcorn$152$30
Caramel Popcorn$201$20
Popcorn Kernels$104$40
Amount Due$90

Your PHP page must also append the orders into a file called "lab10.txt".

This lab assignment is to done in the lab in SEL 2264.