send verify link to the user who registers on my site and only after authenticating the emall id, he/she gets verified. any idea.

i m trying to make a registration form for a user coming to my site. i want to send an email to the user who registers on my site and after he verifies it, only then he/she can login.

i know to send email with PHP. i know how to make register form, login and other issues.

My question is regarding the authentication process.  valid account only after he/she authenticates the email id..

any idea about is really appreciated.
yogeshbansal1985Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Aaron TomoskyDirector of Solutions ConsultingCommented:
Add a isvalditated bool column to your users table with a default value of 0. When you create the user set an md5 hash of the username and dart or something to generate a random string. Save that somewhere ( another column in the users table If you wish). Have the link go to a validate page that checks the userid with the string and if it matches set isvalidated=1.  
scifo_dkCommented:
I usually create another field in the user-table named "verifyed" and another field called "verify_code".

Verify is set to "0" upon creation. And "verify_code" contains a 10 character randomly generated code.

When I send the user the activation mail. I insert a link like:
"www.mysite.com/activation.php?user=Username&code=xxxxxxxxxx"

The the activation.php query's my user-table with the code, and if username and code matches, it sets the verifyed to "1".

// Scifo_dk

yogeshbansal1985Author Commented:
good logic. let me try ds.
Introduction to Web Design

Develop a strong foundation and understanding of web design by learning HTML, CSS, and additional tools to help you develop your own website.

yogeshbansal1985Author Commented:
hello experts, can i get any tutorial of ds somewhere so that i can try it with my own??
scifo_dkCommented:
Yes - PHP Academy on youtube has many great videos, this one is a tutorial of what you need:
http://www.youtube.com/watch?v=A9jiyJ5tRBU&feature=relmfu

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
yogeshbansal1985Author Commented:
thks scifo_dk. u deserve all praise for ur kind help and effort.
scifo_dkCommented:
Your welcome :)
yogeshbansal1985Author Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.