slowrie.com
   Home Page -> About Us -> Privacy -> ToS -> Place Your Link -> Submit Article
Search:   
Add Url
 

Art & Creative

Automobile & Automotive

Teens & Kids

Healthcare & Treatment

Business & Companies

Events & News

Law & Politics

Home Family & Garden

Education & Reference

Hygiene & Health

Realty & Property

Hotels & Travel

Sports

Finance & Banking

Software & Networking

Science & Space

Careers & Employment

Lifestyle & Fashion

Society & Issues

Eating & Drinking

Self Healing

Games & Play

Recreation & Entertainment

Shopping & Auction


 

Home Page » Sports » Triathlon Event
 

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

Author: Oland Whitecotton
 
Author Bio:
Oland Whitecotton is an expert in this field. Oland has written several articles in the past on this topic.
 
 
 

Related Articles

 
Jogging and Swimming the Right Way
 
Advantage of Proper Golf Clubs
 
3 Excellent Running, Fitness and Health Tips!
 
The Foundation of Martial Arts: Yoga
 
Samurai - The Honourable & The Treacherous
 
Golf Resorts
 
Philadelphia Phillies: 2006 Baseball Betting Season Preview
 
Golf Balls
 
How Lance Armstrong Increased the Popularity of Bikes and Cycling Today
 
Costa Rica Mountain Biking - Volcano To Volcano By Mountain Bike!
 
 
 
   Home Page -> Privacy -> ToS
Copyright © 2008 www.slowrie.com