News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Builder.com.au:
Simplify e-mail validation routines with PHP
November 28, 2005 @ 06:21:23

In this new tutorial from Builder.com.au today, they seek to help you simplify the validation of email addresses with the help of a little PHP.

A very common task when building Web sites involves validating user-supplied e-mail addresses. This is of particular importance to sites which require a valid e-mail address for transactions -- e-commerce sites, Web mail sites, mailing lists and so on.

If your Web site uses PHP, however, you're in luck. It's extremely easy to validate user supplied e-mail addresses in PHP, thanks largely to a very powerful regular expression engine built into the language. In this article, I'll demonstrate how easy it is.

They choose the preg_* functions to make their matches, giving you the sample code and regular expression string to help you validate the most. They describe what the expression does, but don't look for an introduction to regular expressions here...

1 comment voice your opinion now!
email validation email validation


blog comments powered by Disqus

Similar Posts

NETTUTS.com: Sanitize and Validate Data with PHP Filters

WeberDev.com: PHP 101 (part 13): The Trashman Cometh

Elijah Horton: Sandboxing Untrusted Code With PHPSandbox

The Bakery: New Articles/Tutorials - NiceHead, Field Validation and Plugin Paths

Cyberlot's Blog: Funny little php "virus" floating around


Community Events





Don't see your event here?
Let us know!


tool composer opinion artisanfiles framework laravel series podcast conference version symfony library language interview release list introduction community security voicesoftheelephpant

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework