verify email script - suggestions? |
[eluser]bret[/eluser]
I'm writing a script for a user to verify their email address. After a user registers on my site, an email is sent to their address with a link to verify: http://www.example.com/register/verify/12345 where 12345 is their activation code. I'm currently at the point where I want to check this activation code to see if it exists in my users table, and if found, replace "12345" with "activated" in that row. I was considering UPDATE Does anyone have any suggestions on the best way to do this? OR if you are willing to share your email verify script (if you have one), that would also be greatly appreciated. Thanks in advance
[eluser]bret[/eluser]
I think I figured it out. Code: $data = array('user_code' => "activated"); I'm still interested in seeing anyone else's email verify code if anyone is willing to share. ![]()
[eluser]Roy MJ[/eluser]
Controller for validating.. Code: $rand_code = random_string('alnum', 10); Its working fine for me ..:p... the code will be added to the table when user registers first time and this is checked the second time around when the user clicks the link in his mail for validation...
|
Welcome Guest, Not a member yet? Register Sign In |