Title: Project 1 ITSE 2402--Intermediate Web Programming
Course: Intermediate Web Programming (25436)

ITSE 2402 Intermediate Web
Project 1
- Create a page age.htm that has a form that contains
  - a text box for the user's name
  - a text box for the user's age
  - a hidden text field named retirement
  - a submit button
  - a reset button
  - an onsubmit event handler in the form tag to call a function to test:
    - a name has been entered
    - a numeric value for age has been entered
  - if both text boxes are valid
    - when age is greater than or equal to 65 enter "yes" in the hidden field
    - when age is less than 65 enter "no" in the hidden filed
    - return true
  - if either text box is invalid
    - use an alert box to explain the error
    - return false
  - the action of the form should go to processAge.htm
- Create a page processAge.htm that
  - Writes the message on the page
Hi name. At age # you may retire.
or
Hi name. At age # you are not ready to retire. Get to work.
  - name is the name entered on the form.
  - # is the age entered on the form.
  - Use the pseudo-element first-letter linked in the CSS review, on your processAge.htm page.
- Debugging Error in your Processing Page
  - To debug your page, change this code
var formData = location.search;
to
var formData //= location.search;
= "?empName=Judy+Scholl&age=29&retirement=no"

Then after each assignment, add an alert box
window.alert("on line xx the value of formData is " + formData);
This is just a debugging tool. Do not use this for your completed work.
- Update index page with links
  - Open your index.htm page in Komodo Edit.
  - Update your index.htm page to link to your pages in your project.
  - Upload your index.htm page and all pages associated with your project.
  - Be sure to test for validation.
  - Email your instructor for grading.

If any of these steps have errors notify your instructor.