Spring 2012

Lab02
Multipage Forms

Due: Tuesday February 07, 2012 11:59 PM

Lab02 - Multipage Forms

Requirements

Comments placed in each source code file5 pts
PHP tags used correctly10 pts
4 Pages Created5 pts
Specified forms present on first 3 pages20 pts
Values are passed from first three pages to last successfully 25 pts
Final page displays output25 pts
Page format is correct and valid10 pts
Total100 pts

Resources

Objective

Work with PHP variables and the GET and POST methods of transferring variables between pages.

Instructions

For this lab you will need to use what we have learned about PHP variables and passing those variables with the GET or POST methods from HTML forms. You will need to create for this lab a multi-page form that will be used to collect information about a client. HTML forms will be used on the first three pages to collect the information and each page will pass it's information to the next page until you get to page four. The last page will simply display all of the information that was collected on the first three pages.

The first page's form should collect the clients first and last name separately and will submit to the second page. The second page should collect the client's street address, city, state, and zip code and should submit this information, along with the first and last name, to the third page. The third page should collect billing information including the credit card type the client wishes to use, the credit card number, and the credit card's expiration date (Month, Day, and Year). This page should then pass the billing information along with the other information it was passed to the fourth page.

The fourth and final page should display the clients full name, full address, and their billing information. This is not an HTML class so I will not be picky about the Form controls you choose to use so long as everything functions as described.