Jump to content

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


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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.