Re: [PHP-WIN] Re: Checking email

2002-02-12 Thread Nikolai Jeliazkov
Here is a many patterns for email checking http://regxlib.com/ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Re: Checking email

2002-02-12 Thread Todd Williamsen
Here is a script that actually connects to their mail server to see if its valid Your E-mail Address is required."); } // If the format of the e-mail address is incorrect elseif ($form_errors["Email_badformat"]) { echo("Please enter a valid e-mail address."); } // If the mail server

[PHP-WIN] Re: Checking email

2002-02-10 Thread Hugh Bothwell
"Marko Mihalec" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > function isEmailInvalid($val) > { Note: this only checks that the value follows the format of a valid email address. To actually know whether the address works or not, you pretty much have to sen

[PHP-WIN] Re: Checking email

2002-02-10 Thread Marko Mihalec
function isEmailInvalid($val) { // regex for email validation $pattern = "/^([a-zA-Z0-9])+([\.a-zA-Z0-9_-])*@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-]+)+/"; // match? if(preg_match($pattern, $val)) { return 0; } else { return 1; } } -- PHP Windows Mailing List (http://www.php.n