Confirm e-mail exists on user registration

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
grgwhl
Forum Newbie
Posts: 3
Joined: Mon Dec 29, 2008 12:00 pm

Confirm e-mail exists on user registration

Post by grgwhl »

Once a user has registered on my site, I want to send them an e-mail to validate their e-mail address exists. What techniques are normally used to achieve this? Please let me know any suggestions.

Thanks
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: Confirm e-mail exists on user registration

Post by jaoudestudios »

As soon as they register fire them an email with an activation link and record their details in the database and have a column status that is 'pending'. When they click on the activation link change their status to 'active'
User avatar
omniuni
Forum Regular
Posts: 738
Joined: Tue Jul 15, 2008 10:50 pm
Location: Carolina, USA

Re: Confirm e-mail exists on user registration

Post by omniuni »

That's how I did it as well. I used a randomly generated ID number. If you want to be secure, I'd use a random ID, along with their user login.
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: Confirm e-mail exists on user registration

Post by jaoudestudios »

If you want to be extra secure, I encrypted their user id and then decrypted it after the user clicks the link.
Post Reply