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


Post to a Discussion (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
  • password
  • 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.php, 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.php that will

  • display their e-mail address
  • display the current date and time
  • display comments

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

(Sorry for changing this, if you want to stay with the previous setup you can!)