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.


MORE RESOURCES:
RELATED ARTICLES
Warning: The Truth About Having a Web Site!
If you don't have a web site yet, are thinking of slapping one up or have one that simply isn't producing, this Warning is for you!All too often folks contact me about getting a Web Site when they really have not done their due diligence in determining even if their "idea" is one worth investing in. And although they hate spam and don't believe most of it, they do tend to fall into believing much of the fast, easy and cheap noise online in existence only to line the pockets of shysters and unscrupulous developers.
Whats Your Business Online Attitude?
This article was prompted by some customer support work I was involved in for a private members site. One of the paid subscription members wanted someone to look over his website and give an opinion of what we thought of its design.
Dreamweaver 8 Preview
August 8 2005, Macromedia announced a release of Studio 8. Based on the feedback of previous users, Macromedia made it's already very powerful software even better.
Are You Being Scammed By Your Web Design Company?
This is a growing concern amongst many business owners. Does your web design company own you? This may be possible if you've allowed them to host your web site for you and also register your domain name for your company.
Creating a Sticky Web Site
When used to describe a web site, the term "sticky" refers to a site that is able to get viewers to stay at the site longer and come back frequently. Sticky web sites are more likely to turn viewers into customers.
5 Tips To Supercharge Your Website Sales Copy
The art of turning website visitors into paying customers depends almost entirely on good sales copy. What is that?Simply put good sales copy is the content of your copy and presentation of your copy put together in such a way that it increases your visitor to sale conversion rate on a consistent basis.
Effective Webdesign
D.zigns dzignerwebs The Basics Before starting on how to design a website effectively, how about clearing some basic web design concepts? Designing Effectively Now that you know what web design and related terms mean, lets get down to the real thing: Designing Effectively How to balance artistic design with practicality and functionality.
How to Draw Icons or Images on a Mapserver Generated Map
In this example I have used the map of the Itasca demo of the Mapserver. I have done only small changes to the map file.
Web Content: How Much Should I Pay?
When web content gets discussed on webmaster bulletin boards, the most common question is, "how much should I pay?" That question is both perfectly logical, and perfectly stupid: Logical, because the biggest expense of any website, with the possible exceptions of advertising and promotion, is the content. You only have to get web development and design once, but content needs to be added regularly for your site to be successful.
Revealing the Firefox Secret Used by Top Web Developers and Power-Browsers
Profiles are one of the best kept secrets around regarding Mozilla Firefox (my browser of choice).In the role of web site designer, I find it useful to have Firefox set up with various Extensions for helping test compliance, keep track of Google Adsense earnings, checking PageRank and Alexa rating, etc.
4 Rock Solid Reasons For Building Your Own Website
What is the point of having a website, you may ask, when the affiliate programme you have joined has provided you with your own web page to promote? This is a fair question. The answer has to be that with your own site - and of course your own domain name - you will have a lot more control over your business.
What is SQL?
What is SQL? SQL stands for Structured Query Language and is the lingua franca in the database world. SQL is a standard that is used by all database vendors and programmers to define, extract and access the information that is stored in databases.
You May Be Losing Valuable Traffic - And Not Even Know It!
Here's something you may never have thought of before:If I were to type your domain name?http://www.yourdomain.
How Disabled Users Access The Internet
In 1995 a new era of accessibility for disabled people began. The Disability Discrimination Act was passed, stating that:"It is unlawful for a service provider to discriminate against a disabled person by refusing to provide any service which it provides to members of the public.
Build a Strong Foundation for Creating Your First Online Identity - Notes for Beginners
If you are looking for creating your online presence you should follow some of the basic requirements so that your new website will have a strong foundation. Today internet is a growing media which can provide you maximum results, which no other media can do for you.
Seven Daft Things Not To Do To Your Website
1. Splash pagesMost of the time splash pages are uncalled for.
Stop Losing Precious Web Site Traffic to the Dreaded World Wide Web Black Hole
You work hard to build traffic to your web page. If you are not doing 1 simple step you are loosing a portion of all your web site traffic to the dreaded World Wide Web Black Hole.
The Top Ten Benefits of Having a Web Site
Do you need a web site? Are you considering getting one but are unsure? Here we take a look at the main reasons why a web site could be beneficial to your organisation.1) It will give you the competitive edgeIf you do not have a web site people cannot visit it - an obvious point you might say.
12 Essential Tips to a Professional Business Website
1. Choose a big enough font size.
You Need To Treat Your Website Like An Employee - Heres 5 Ways To Do It
People often come to me in a state of crisis and say their website isn't working. Usually they're in a cold sweat:"Mike, give me some practical things I can do to get more sales from my website!"You want practical advice? Stop treating your website like an object in your business and start treating it like an employee.