note 53156 deleted from function.preg-match by colder
| From: | colder@php.net | Date: | Mon, 18 Jun 2007 18:22:29 +0000 |
| Subject: | note 53156 deleted from function.preg-match by colder | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-127600@lists.php.net to get a copy of this message | ||
Note Submitter: stoney666 at gmail dot com
----
Update to my last entry, i noticed that the email validation function didnt actually work like it
was supposed to. Here's the working version.
<?php
function validate_email($email_address) {
if (preg_match("/^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,6}$/i", $email_address)) {
return true; }
else { return false; }
}
?>