PHP - CCIS 2630 - HW 9

Registration Script - 10 points

Change your registration page to add a field to collect the user's email address. Next, modify your registration script to make sure the email address entered is valid. This must include (at a minimum) a check for the following:

If the registration is valid, send the user a confirmation email with a link in it to a confirmation page on your web site. Also, make an entry in your database indicating that the user has started the registration process. This can be done serveral ways. One suggested way is to set a status field in your database to "phase 1" or 1 or something similar.

Hints:

Confirmation script - 5 points

Create a script (named confirm.php) which updates the users status in the database from the previous part to "confirmed" or some other code indicating that they have confirmed their status. This script must be called when the user clicks on the email they received when they signed up.

Extra Credit - 2 points

In the confirmation script above, require the user to login before updating their status to confirmed.

Required to submit for credit (Due by end of next session):