Re: Email with pregmatch
| From: | Dave Goodchild | Date: | Sun, 27 Aug 2006 13:46:43 +0000 |
| Subject: | Re: Email with pregmatch | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-241142@lists.php.net to get a copy of this message | ||
Try this:
preg_match("/^([a-zA-Z0-9.])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-]+)+/",
$_POST['email']);
-- http://www.web-buddha.co.uk http://www.projectkarma.co.uk