golf7641

Saturday, February 9, 2008

 

PHP & Account Activation

When a user signs up at your website, you may want to verify their email address so you aren't getting bogus accounts in your database. A few lines of code can send an email to the address specified, containing a welcome greeting and link to activate their account. PHP is the best way to both send the emails and do the activation process.

When the link in the email is clicked, a PHP page is loaded that performs a couple simple validation techniques, and if valid, it activates the account. PHP checks for the email address in the database and makes sure the random variable attached to the URL is the one generated at account creation to be used for activation. If these conditions are met, the account is activated.

Some sites also allow the user to resend the activation email, which makes the account activation code a little longer. PHP then has to delete the value for the old activation variable and insert a new randomly generated variable in the database. The script also has to send the email again, but with a different messaged attached - like "This is a resent confirmation email to activate your account with us".

Meditation Yoga Tactical Weapons Coolonlinestuff

Comments: Post a Comment



<< Home

Archives

Nov 20, 2007   Nov 21, 2007   Nov 22, 2007   Nov 23, 2007   Nov 24, 2007   Nov 25, 2007   Nov 26, 2007   Nov 27, 2007   Nov 28, 2007   Nov 29, 2007   Nov 30, 2007   Dec 1, 2007   Dec 2, 2007   Dec 3, 2007   Dec 4, 2007   Dec 5, 2007   Dec 6, 2007   Dec 7, 2007   Dec 8, 2007   Dec 9, 2007   Dec 10, 2007   Dec 11, 2007   Dec 12, 2007   Dec 13, 2007   Dec 14, 2007   Dec 15, 2007   Dec 16, 2007   Dec 17, 2007   Dec 18, 2007   Dec 19, 2007   Dec 20, 2007   Dec 21, 2007   Dec 22, 2007   Dec 23, 2007   Dec 24, 2007   Dec 25, 2007   Dec 26, 2007   Dec 27, 2007   Dec 28, 2007   Dec 29, 2007   Dec 30, 2007   Dec 31, 2007   Jan 1, 2008   Jan 2, 2008   Jan 3, 2008   Jan 4, 2008   Jan 6, 2008   Jan 7, 2008   Jan 8, 2008   Jan 9, 2008   Jan 10, 2008   Jan 12, 2008   Jan 13, 2008   Jan 14, 2008   Jan 15, 2008   Jan 16, 2008   Jan 17, 2008   Jan 18, 2008   Jan 19, 2008   Jan 20, 2008   Jan 21, 2008   Jan 22, 2008   Jan 23, 2008   Jan 24, 2008   Jan 25, 2008   Jan 27, 2008   Jan 28, 2008   Jan 29, 2008   Jan 30, 2008   Jan 31, 2008   Feb 1, 2008   Feb 2, 2008   Feb 4, 2008   Feb 6, 2008   Feb 7, 2008   Feb 8, 2008   Feb 9, 2008   Feb 10, 2008   Feb 11, 2008   Feb 12, 2008   Feb 13, 2008   Feb 14, 2008   Feb 15, 2008   Feb 16, 2008   Feb 17, 2008   Feb 18, 2008   Feb 19, 2008   Feb 20, 2008   Feb 21, 2008   Feb 22, 2008   Feb 23, 2008   Feb 25, 2008   Feb 26, 2008   Feb 27, 2008   Feb 28, 2008   Feb 29, 2008   Mar 1, 2008   Mar 2, 2008   Mar 3, 2008   Mar 4, 2008   Mar 5, 2008   Mar 6, 2008   Mar 7, 2008   Mar 8, 2008  

This page is powered by Blogger. Isn't yours?