Jump to content

how do i send an email with a link to verify that the email is from the user?


hasjem

Recommended Posts

For mailing have a look at this http://uk2.php.net/manual/en/function.mail.php

 

What you will want to do is store a hash in the database against the new user, select this hash back out the database (make sure you enclose it in singel quotes) and mail it to the user with the prefix of "http://www.mysite.com/registration.php?hash=" on the address provided by the form.  have a registration.php page that uses $_GET['hash'] to run a select against the hash in the database and then flag the user as authorised if they match.

 

You will need to make sure you have columns in your database to store a status flag and the hash.

 

If you have any issues let us know.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.