Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-05-2008, 12:10 AM   PM User | #1
eeijlar
New Coder

 
Join Date: Feb 2006
Posts: 61
Thanks: 11
Thanked 0 Times in 0 Posts
eeijlar is an unknown quantity at this point
Using email address to validate users...

Hi,

You know when you register with forums such as this one, they send you an e-mail address and ask you to click on a link to complete the registration. This is to filter out bogus registrations I imagine. I was just wondering how is this achieved in practice? What do you put into the link that you send the user so that you can know when they navigate back via the link that they are a valid user? I would like to add the same technique to my own web site.

Any ideas greatly appreciated.

/jlar
eeijlar is offline   Reply With Quote
Old 08-05-2008, 12:28 AM   PM User | #2
Len Whistler
Senior Coder

 
Len Whistler's Avatar
 
Join Date: Jul 2002
Location: Vancouver, BC Canada
Posts: 1,323
Thanks: 26
Thanked 100 Times in 100 Posts
Len Whistler is on a distinguished road
PHP 6 and MySQL 5 for Dynamic Web Sites: Visual QuickPro Guide by Larry Ullman has a very good tutorial on a register script with that feature.



No advertising please


------------------------------
__________________
Leonard Whistler

Last edited by WA; 08-05-2008 at 06:18 PM..
Len Whistler is offline   Reply With Quote
Old 08-05-2008, 07:37 AM   PM User | #3
ssonawa
New Coder

 
Join Date: Jul 2008
Location: India
Posts: 39
Thanks: 0
Thanked 2 Times in 2 Posts
ssonawa is an unknown quantity at this point
This is a very simple method, may have some flaws, feel free to ask them-


After filling up the validated form for registration, link with some randomly generated characters(alphanumeric or special characters, decide your combination) could be sent to the user in email at email address specified.

That randomly generated combination of characters are to be stored in the database for that User.

If the link is being clicked which is passed in the email, and the character combination sent in that URL is same with database for that User then make that user active, by updating User table and 'user_active' column as 'Yes'.
ssonawa is offline   Reply With Quote
Users who have thanked ssonawa for this post:
eeijlar (08-06-2008)
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:18 PM.


Advertisement
Log in to turn off these ads.