CSCI 895: CGI-Bin Programming 
Programming assignment 2: Form Validation

Due 2/4

Requirements

In the first programming assignment, you created a simple form which input the following information from a user: You are to enhance your form with JavaScript code which checks the content of the form for correctness when the form is submitted. If the data does not meet the following requirements, then the form should not be submitted. If any of these rules are violated, an appropriate alertwindow explaining the problem in an informative manner should be displayed. In addition: As always, your JavaScript code should be well documented.

What to Turn In

In order to preserve the security of your assignment, you are not to post it the way that you did the first one. Instead, you are to turn in a diskette containing your html file (which should be named hw2.htm on the diskette).

You will be developing this program off line (this will be possible since there is no additional CGI required for this assignment) on a PC. That is, you can: