[Edit] Validating Emails with PHP
example
$mails = array('[email protected]', 'contact#awcore.com'); foreach ($mails as $mail) { if(validate_email($mail)){ echo "{$mail} is valid email <br />"; }else{ echo "{$mail} is <strong>invalid</strong> email <br />"; } } function validate_email($email) { if(eregi("^[a-z\'0-9]+([._-][a-z\'0-9]+)*@([a-z0-9]+([._-][a-z0-9]+))+$",$email)) { if(count(explode("@",$email))>1) { return true; } else { return false; } } else { return false; } } |
This Page is Under Construction! - If You Want To Help Please Send your CV - Advanced Web Core (BETA)
© Advanced Web Core. All rights reserved