|
If you're just looking for a pre-built script, try google. Terms like "PHP eMail verification" or "PHP user registration system" will work.
If you want help with code, you'll have to be more specific. The best I could give you is the basic logic of the sytem:
A. Request user's eMail address via form
** 1. Validate eMail address is in proper format
** 2. Validate that domain name as a responsive MX record
** 3. If either fails, return to [A] with error
** (Note) A CAPTCHA would be good to have here.
B. Display verification instructions (send email, ask user to check eMail)
** 1. Store random string, with eMail address request in database or similar
** 2. Send eMail to user including randomized code. A simple link makes life easy.
** 3. This page could also host a form requesting the user to enter the verification code you just sent via eMail if they opt to copy/paste the code instead of clicking the link you provided via eMail -- the form would be submitted to [C] (below)
C. Auto-click verification script.
** 1. If both eMail addres and random code are supplied, ensure they match in the database, then grant access.
** 2. Otherwise, provide further instructions / error message.
|