yogeshbansal1985
asked on
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.
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.
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.
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
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
ASKER
good logic. let me try ds.
ASKER
hello experts, can i get any tutorial of ds somewhere so that i can try it with my own??
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thks scifo_dk. u deserve all praise for ur kind help and effort.
Your welcome :)
ASKER
scifo sir, would u hv a look over this??
https://www.experts-exchange.com/questions/26932592/PAGINATION.html?anchorAnswerId=35317933#a35317933
https://www.experts-exchange.com/questions/26932592/PAGINATION.html?anchorAnswerId=35317933#a35317933