Homework 3

 

Input Validation (30 PTS) 1.  Currently, the error trapping in the User Registration web is quite minimal.  While there is more you could do, you should focus on the write_to_user_registration.php.
  • make sure the user has entered a
    • first name
    • last name
    • email address
    • and password

 

Discussion Web (70 PTS) 2.  You need to create the capability for registered users to post comments to a running discussion.  You should call the form to gain access discussion_access.html that requires the user to input their

  • email address and password
    • these should be used to validate they are a registered user before allowing them to post their entries and view the discussion
  • give them space in a textarea to write their comments
    • these comments as well as their email address and the date and time need to be written to a new table called discussion_space.

After validating these inputs in a page called discussant_validation.asp, this page writes the inputs to the discussion_space table.  Then this page calls another page which posts its results to a form called discussion_page.asp that will

  • display their e-mail address
  • display the current date and time
  • display the comments/discussion that they entered

You want to make sure that only the ten most recent comments are displayed.