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

I am a PHP website developer at http://www.simplyphp.com with 6 years experience.

In The News:

IT careers: How to write a resume in 2020  The Enterprisers Project
Web Design Jobs  Southern New Hampshire University
QA Analyst job with NuORDER | 142292  The Business of Fashion
MiBiz Growth Report: July 5, 2020  MiBiz: West Michigan Business News
Senior Web Developer  Charlotte Agenda

Website Imperatives and Solutions

When you take a look at the most visited sites... Read More

4 Rock Solid Reasons For Building Your Own Website

What is the point of having a website, you may... Read More

Your Website Reflects Your Business

Some left shoes are in isle 5, while the right... Read More

Successful Commercial Sites

Do you make your website just to entertain yourself or... Read More

Adding Word Rich Content to Your Website

You have permission to publish this article electronically, in print,... Read More

Make Your Web Site Stand Out

When visitors add your web site to their Favorites or... Read More

Top 10 Webmaster Challenges

Webmasters deal with a myriad of complex design challenges every... Read More

7 Reasons YOU Need a Website

1) A marketing necessityI still hear it said from time... Read More

Why Every Small Business Owner Needs Two Websites

Every small business owner knows that they need a website,... Read More

Preventing Repeat Form Submission Using PHP Sessions

We've all seen those messages on some websites warning not... Read More

Now You Have a Web Site - Have You Ever Heard of Accessibility?

An accessible Web site is easily approached, easily understood, and... Read More

If You Build It, They Will Come?

Building a new website can be a lengthy task. From... Read More

I Did It: Six Months to a Successful Website

For years now I've been looking to start my own... Read More

UK Online Shopping with an Edge, for Buyers and Sellers Alike

Any new website competing on the internet, needs to take... Read More

PIM Team Case Study: Creating Text Effects With PHP and GD

See how you can create graphic effects on text with... Read More

A Web Site for Your Small Business: How to Set Up a Website

Your web site will be your window to the world.... Read More

7 Killer Ways To Increase Your Online Sales

Every online entrepreneur I talk to is asking the same... Read More

Linking Out is Good

Many websites I come across don't have a single link... Read More

In Business? 10 Reasons Why You Need a Website -- Now!

1) Word of Mouth The single most powerful form of... Read More

The Importance of Website Stats to You

One of the best tools you have as a webmaster... Read More

The Topic Of Your Website

The first thing you will have to deal building your... Read More

How Did You Get Here?

When marketing your website, it's important to know which of... Read More

The Web: Your Window of Opportunity

Thinking about starting up a business? The web is the... Read More

How to Handle Web Surfers Who Disabled JavaScript

There are hundreds of millions of Web surfers today. Each... Read More

Five Reasons You Have to Stop Your Web Site

That's right. Your method, behavior and strategy you are now... Read More