CIS363A Lab 5 HTML Form with Validation and Proper Designing

This lab supports TCO 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.

iLAB STEPS
Step 1: Create Web Page in Dreamweaver
Using what you learned in Weeks 1 to 4, create a web page that includes the following.

  • A title for the online store—you make one up!
  • A subtitle that says “Complete Your Order”
  • The items that the user ordered
    1. One kayak with rudder for $775.00
    2. One 10 L dry bag for $15.00
    3. Two helmets for $50.00 each
  • The total cost for the order

Feel free to add a layout, style, color, and graphics to the page as you see fit.

Step 2: Add an HTML Form to the Page

  • The page must include a way for the user to enter his or her
    1. name;
    2. address (street, city, state/province, country);
    3. phone number;
    4. e-mail address;
    5. preference for shipping or picking up the order;
    6. credit card type (one of Visa, MasterCard, or American Express); and
    7. credit card number.
  • There must also be a button to complete the order.
  • You should choose the appropriate form element for each input. For example, a textbox should be used for “name.”

Create a simple HTML page with a heading level 1 that says “Thank You!” Save this as thanks.html.

Note: If this page was part of a real store, we would set the form action to a server script to handle the order. However, for the purpose of this lab, please set the form action to thanks.html. When a valid form is completed, the form will redirect to this page.

Step 3: Add Unobtrusive Validation to the HTML Form
Include unobtrusive validation to the form. You must ensure that

  • name and address are not blank;
  • one of the ship or pick-up options is selected;
  • a credit card type is selected; and
  • a credit card number is not blank.

If the form does not validate, notify the user and do not allow the form to submit.

Step 4: iLab Submission

  • Create a folder called CIS363A_YourLastName_W5_Lab.
  • Put copies of each required deliverable into the new folder.
  • Right-click on the folder and select Send To -> Compressed (zipped) Folder. You can also use other tools to compress the files into a single zip folder (e.g., 7-zip).
  • Upload the zip file to the Week 5 iLab DropBox located on the silver tab at the top of this page.

Submit your lab to the Dropbox located on the silver tab at the top of this page. For instructions on how to use the Dropbox, read these step-by-step instructions or watch this Tutorial Dropbox Tutorial.

Step Deliverable/Components Points
Step 1
- Includes all of the required elements: title, subtitle, table of items (5 points)
- Design, layout, CSS (5 points)
10
Step 2
- Includes all of the required form elements: name, address, e-mail address, ship or pick-up, credit card type and number (10 points)
- Choose appropriate controls for the input (5 points)
- Set form tag correctly (5 points)
20
Step 3
- Validation of the required elements (5 points)
- Unobtrusive validation used (3 points)
- Prevent from submission on invalid data (2 points)
- Transfers to thanks.html on valid submission
10
Total 40



This slideshow requires JavaScript.


This assignment includes a zip document.

  • Attachments
    • CIS363A_Lab5.zip (360.65 KB)
      • CIS363A_YourLastName_W5_Lab
      • Screenshots
        • Screenshot_ErrorMessage.jpg
        • Screenshot_FormLayout.jpg
        • Screenshot_ThankYouPage.jpg
    Preview random excerpt
    &xx;xxxx&xx;
    &xx;xxx xxxxx=&xxxx;xxxxxxxxx&xxxx;&xx;
    &xx;xxxxxx&xx;
    &xx;xxx&xx;
    &xx;x&xx;
    &
    xx
    ;h1>&
    xx
    ;div class="mainheader"&
    xx
    ;
    xxxxx
    Sport Center</
    xxx
    ></h1&
    xx
    ;&
    xx
    ;
    xxx
    style="
    xxxxxxxx
    :
    xxxxxxxx
    ; display:inline"
    xxx
    ="images/sportsbanner.jpg&
    xxxx
    ; width=&
    xxxx
    ;100%&
    xxxx
    ;
    xxxxxx
    =&
    xxxx
    ;
    xxx
    "
    xxx
    =""/></b> <
    xxx
    &
    xx
    ; &
    xx
    ;/header> &
    xx
    ;article class="content"&
    xx
    ; &
    xx
    ;h2>Complete Your
    xxxxx
    !&
    xx
    ;/h2> &
    xx
    ;section class="maincontents"> &
    xx
    ;form action=&
    xxxx
    ;thanks.html" method="post" id="form1"&
    xx
    ; &
    xx
    ;table class=&
    xxxx
    ;maintable">
    &xx;xxxxx&xx;
    &xx;xx&xx;
    &xx;xx xxxxxxx=&xxxx;4&xxxx; xxxxx=&xxxx;xxxxxxxxx&xxxx; xxxxx=&xxxx;xxxxxxxx:xxxxxxxx&xxxx;&xx;&xx;xxx xxx=&xxxx;xxxxxx/xxxxxxxxxxxx.xxx&xxxx; xxxxx=&xxxx;80&xxxx; xxxxxx=&xxxx;80&xxxx; xxx=&xxxx;&xxxx;/&xx;&xx;x xxxxx = &xxxx;xxxxxxxxxxx&xxxx;&xx;xxxxx xxxx xxx xxxxxxx:&xx;/x&xx;
    - - - more text follows - - -
    Preview random excerpt
    xxxxxx: 0;
    }
    x1, x2, x3, x4, x5, x6, x {
    xxxxxx-xxx: 0;
    xxxxxxx-xxxxx: 15xx;
    padding-
    xxxx
    : 15px; text-align:
    xxxxxx
    ; } .container {
    xxxxx
    : 960px;
    xxxxxxxxxx
    -color:
    xxxxxxxxxx
    ; color: #3824F0;
    xxxxxx
    : 0 auto; }
    xxxxxx {
    xxxxxxxxxx-xxxxx: #3824x0;
    - - - more text follows - - -
    Preview random excerpt
    &xx;!xxxxxxx xxxx&xx;
    &xx;xxxx&xx;
    &xx;xxxx&xx;
    &xx;xxxx xxxxxxx=&xxxx;xxx-8&xxxx;&xx;
    &xx;xxxxx&xx;xxx363x xxx 5&xx;/xxxxx&xx;
    <link href="style.css&
    xxxx
    ;
    xxx
    ="stylesheet&
    xxxx
    ;
    xxxx
    =&
    xxxx
    ;text/css"&
    xx
    ;&
    xx
    ;!--[if lt IE 9]> <script src=&
    xxxx
    ;http://
    xxxxxxxxx
    .
    xxxxxxxxxx
    .com/svn/trunk/
    xxxxx
    .js"&
    xx
    ;</script> <![endif]--> </head> &
    xx
    ;body> &
    xx
    ;div class="container"&
    xx
    ; &
    xx
    ;header> <div> &
    xx
    ;b>
    &xx;x1&xx;&xx;xxx xxxxx=&xxxx;xxxxxxxxxx&xxxx;&xx;xxxxx xxxxx xxxxxx&xx;/xxx&xx;&xx;/x1&xx;&xx;xxx xxxxx=&xxxx;xxxxxxxx:xxxxxxxx; xxxxxxx:xxxxxx&xxxx; xxx=&xxxx;xxxxxx/xxxxxxxxxxxx.xxx&xxxx; xxxxx=&xxxx;100%&xxxx; xxxxxx=&xxxx;175&xxxx; xxx=&xxxx;&xxxx;/&xx;&xx;/x&xx;
    &xx;xxx&xx;
    &xx;/xxxxxx&xx;
    - - - more text follows - - -



Purchasing Instruction
List Price: $15
Buy Now

Buy More Save More
Buy at least TWO items & save up to 30% OFF your ENTIRE order!
Rack up instant rebates in your shopping cart. Simply add items to your cart, and see the savings add up.
Discounts will automatically be applied on eligible orders.

Add to Cart
FLASH SALE
$59

$78 Save $19
CIS363A Entire Course