E mail address input with validation?
View Single Post
02-17-2010, 10:08 PM
is cute and cuddly
Join Date: Mar 2008
Location: Vegas, Baby
You don't necessarily need to send them an email, though that would be the 110% guarantee test - a lot of sites have incorporated this method in favor of doing nearly any validation of their own. The process is simple; when a user signs up, an email is sent to the address they entered. If the validation code within is received and given back to a verification page on the site, the account is activated. Otherwise that's as far as you ever get.
If your process is too 'simple' to require a complete authentication process of every user, then you would want to look into regular expressions as Village mentioned to attempt validation of the address - one of the best was started by Dave of ilovejackdaniels.com fame (now addedbytes.com thanks to some idiots working in the JD trademark department). The code is now a google project and can be found here:
(note you will need svn to check this out, as there are no downloadable packages).
After basic validation you can step up the heat a little and start checking DNS records. You'll find PHP has two built in functions for this,
... in fact, google is your friend, like you'll see in Village's sig, and I turned up a tutorial that covers all of these aspects quite well:
View Public Profile
Send a private message to delayedinsanity
Visit delayedinsanity's homepage!
Find More Posts by delayedinsanity