DHTML

Lab Description

For this assignment, you will write a form that you'll use in a subsequent lab that submits information to a web server. The form is used for pre-ordering tickets and snacks from a movie theater. For now, you'll just write the page containing the form and, using Javascript, validate that all fields in the form are correctly filled out. You'll incorporate DHTML techniques to flag the user as to which fields contain errors or omissions.

JavaScript and Forms

Reserve For:
Username:
Password:
Email:
Credit Card:
Security Code:
Choose your theater:
 
Feature film:
 
 
Film 1
Showtime:
 
Showtime 1
 
Showtime 2
 
Showtime 3
Movie Snacks:
 
Snack 1
 
Snack 2
 
Snack 3
The username must be 8 characters or less.
The password must be 6 numeric characters or less.
The email can not be blank.
The credit card number, although 16 numbers, must be 10 characters.
The security code must be 3 characters.

I did this intentionally.

Source Code

The JavaScript source for this is InterestCalculator.js