Gail W. Issen
Week 4 Assignment
This assignment was to use the Subway form I made for Assignment 1 and add logic to it.
- Validate (on server) – if the form is missing the Name, Phone and/or Date/Time information then display on the “order.asp” page an error message indicating “these fields are missing”. List the names of the missing fields. Do Not display any order information is the fields are missing.
- If the Contact information is valid then proceed to the next item
- Calculate order subtotals and Total according to the prices given to us.
- Add new option for “Bread” of “Select One”; it will have no value.
No Charge for Bread type(s)
No Charge to Toppings or Dressings & Sauces
- Add new drink type of “Bottled Water” as a radio button option./li>
- Add new option of “No Drink” to the drop list. The order will not charge if selected.
- Display the SubTotal for each section. Display the cost for Sandwich, Soft Drink, Chips & Cookies. If 0 then display 0.
- Add 8.25% TX sales tax to order SubTotal. Use a Constant to display the sales Tax on the page at the bottom.
- At the bottom of the “order.asp” page Display the complete Total including Sales Tax.
The files for this assignment are as follows:
- subway.asp
— This is the page containing the input form.
- order.asp
— This is the page that displays the output from the input form.