This Lab supports the following COs.
CO 6: Given a project, develop an online form that uses client-side form validation.
You have been asked to design and implement a checkout form. Imagine that a user has been navigating an online store that sells a variety of sports equipment. The user has added a number of items to his or her shopping cart and is going through the checkout process to order the items online. The checkout page shows what the user bought and allows him or her to enter his or her information (name, address, credit card number, etc.) to complete the order. You are going to design this checkout form.
Part A: Create the Web Page
1.Using what you learned in Weeks 1 to 4, create a web page that includes the following:
2.Use CSS to create a layout and add styles, color, and graphics to the page as you see fit.
Part B: Add an HTML Form to the Page
1.Set up a form on the page below the order summary information.
2.Include fields for the following information:
Be sure to choose the appropriate form element to each input field. For example, a textbox should be used for "name". Also, use appropriate labels for each field so that the user knows what information is expected.
3.Include a Submit button to complete the order.
4.Create a simple HTML page with a Heading Level 1 that says "Thank You!" Save this as thanks.html.
5.For the purpose of this lab, set the form action to thanks.html. When a valid form is completed, the form will redirect to this page (Note: If this page was part of a real store, we would set the form action to a server script to handle the order.)
Part C: Add Validation to the HTML Form
1.Include validation to the form to ensure that
2.If the form does not validate, notify the user and do not allow the form to submit.
Part D: Complete the Lab Report
1.Download the CIS363_Lab_Report.docx file from Files.
2.The lab report must be completed for all labs. The key parts of the report include the following.