Assignment 2
Assignment 2
Objective
Ability to use client-side scripting languages (DHTML, Javascript) to add interactivity to web sites.
You are going to create an input form using HTML and Javascript. It will validate and collect information
from the user and go to a confirm page that displays the information entered and allows the user to
confirm that the information is correct. Below are all the input form fields and the validation required.
It is up to you (the designer) how you present the information request. For example in entering a
date you can have a single text box, or you can have multiple boxes with drop down choices. You
do, however, have to validate the data to make sure it meets all validation rules.
Field Validation
Name The user must enter a first and last names. These cannot be blank. You may use a single text
box, but must check for 2 names, or use 2 text boxes.
Birth Date User must enter a valid birthday, make sure to check format and also date – if dates are
unreasonable (like in the future) give a warning.
Phone A full 10 digit phone number must be entered (includes area code).
Number
Message The user will enter a free text message, you should have a multi-line text entry area for the
message
Confirmation A simple confirmation method to ensure that the fields are not filled out by a machine, you
can use a captcha or simple security question (like what is the last name of the current
president)
Once the user enters all this information in the form and hits submit, you will present the
information and allow the user to confirm that it is all correct. The user should not be able to
enter invalid data or leave fields blank.
You must then upload the form and have it available on your web site