CS 199 Willamette University Spring, 2019
 
Programming in PHP, Databases with MySQL,
and Web Applications
 

Integrative Forms Project

This lab suggests one type of application of forms and PHP programming. The work here is limited in scope. Further, since this project collects no personal data, the application largely avoids many issues of privacy and security. Hopefully, work on this project may provide insights about approaches that might be considered for more realistic applications.

A Form for Ordering Lunch from an [Elegant???] Restaurant

The Pretty Healthy Pickle is a fictitious restaurant, located at 199 Walker Avenue and serving a pickle with each luncheon entree, so its well-known abbreviation is PHP-199. To reduce lines at lunch, patrons may order their luncheon options online, based on the following somewhat-quirky menu:

 
Bread
 
•Wheat ($0.75) •White ($0.75) •Sour Dough ($.85) •Croissant (0.95)
 
Diet Category
 
•Carnivore ($3.50) •Vegetarian ($2.75) •Vegan ($3.00)  
 
Vegetables ($0.40 each)
 
•Carrot slices •Green pepper •Jalapenos •Ketchup
•Lettuce •Mushroom •Mustard •Onion
 
Type of Pickle
 
•Candied •Dill •Gherkin •Sweet
 
Customer Details
 
Name for order pickup: Price paid (before change)

Of course, a real restaurant might expand some of these categories and add types of cheese, options for sauces, etc., but the above menu might provide a starting place.

Within this menu:

After submitting the form, PHP processing on the server should display the following:

Project

Implement both the Web page for the menu form and the PHP/HTML page that generates the response page, and use Cascading Style Sheets to add color and style in the format of each page.

Work to be Turned In



created 4 February 2019
revised 4 February 2019
Valid HTML 4.01! Valid CSS!