MMDT1022 HTML II and Javascript
Week 9


Week 9

Read chapters 7 and 8 in the book.  This chapters is about validating form data. 

In class we will be putting together this t-shirt order form and validate its data to order t-shirts.

Regular Expression Library and helpful cheat sheet.


Lab 9

Do:  Reuse the submission form that you created for lab3.  Your posting action will be to the URL http://www1.ridgewater.net/scripts/jmail/data.php, just like it was before.

Here is a snapshot of the form and the form variable names.  Also shown is the form action that is called upon submission.  Note:  Pay careful attention to the variable name case.  Variable names are cAsE sEnSiTiVe.

Add validation to all textual form elements to see that they exist using Dreamweaver.  However, for the ZIP code field, create a validation function by hand. Allow for both 5 digit ZIP codes and 5+4 ZIP codes.  I will be checking the ZIP code field very carefully.  Once built and published, test your form.  All input fields will be echoed back if your form is working correctly.

Grading Criteria Points
15
A folder created in the site root labeled "lab9" 1
A form with all text fields validated. 6
The ZIP code text field validated for both 5 digit and 5+4 ZIP. 6
Assignment in on time. 2