Meta Search Engine Navigation


Look For It  




PHP & Account Activation



by Oland Whitecotton

ARTICLE REPRINTING IS PERMITTED

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".


Information About The Author

I am a PHP website developer with 6 years experience. Visit simplyPHP.com to see my website.


Published by Meta Search Engine LOOK-4IT.COM.




You can reprint this article for FREE at your web site. Doing this you agree to keep all texts and hyperlinks unchanged.

Please keep reference to LOOK-4IT.COM meta search engine as well, if you decide to use this article as a free content for your web site.

Back to article category: Php

Additional Php Articles

PHP Pear Packages :: Why they are so important to php developers?
PEAR is short for "PHP Extension and Application Repository". It is a standard and structured library of open-sourced code for PHP users. All PHP code is written in standard style known as PCS (PEAR Coding Standards), it helps in maintaining the collaboration between PEAR developers.








Home  |  Submit Article  |  Link to Us  |  Directory  |  Free Content  |  Contact Us  |  Privacy Policy  |  Terms of Use

Copyright © 2005-2006, LOOK-4IT.COM. All rights reserved.

All trademarks, icons, and logos, shown or mentioned at this web site, are the property of their respective owners.
The information in the articles is provided without any warranty and must by used by the reader at their own discretion.
A professional opinion should be sought before taking any of the advice.