/ Published in: PHP
only checks if the string contains @, . and alphanumeric characters
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// name: evValidEmail // version: v0.1 // description: chequea que sea un email valido function evValidEmail( $email ) { if ( !eregi( "^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email ) ) : return true; else: return false; endif; }