PHP Email Validation Function Script Snippet Check Correct Emails
Post Description:
Post Tags: php, email, validation, function, script, snippet, check, correct, emails, Snippets, Wallpaperama, Free, Wallpapers
This Post Has Been Viewed 507 Times Since Sun Feb 24, 2008 10:45 am Posted By
hostman with 3 replies
Next Post »»
display array elements values with loop
thanks to www.webune.com for helping us with this questions.
i needed a function or class to check on my user's email to verify that the emails address they were providing was correct. so here is a useful email verification function.
this function just checks that the format of the email is correct:
function check_email($email) {
$validation = TRUE;
if(!eregi("^[_a-z0-9-]+(.[_a-z0-9-]+)*@[a-z0-9-]+(.[a-z0-9-]+)*(.[a-z]{2,4})$", $email)) {
$validation = FALSE;
}
return $validation;
}
hope this helps
USAGE:
if(!check_email($mail)) {
$error .= "EMAIL - The Email You Provided Is not Valid";
}
Comments and replies About PHP Email Validation Function Script Snippet Check Correct Emails
i guess nyk in reno does not exist any more. i called both of the phone numbers that you gave me and no luck. the zz4-34y-xxzx has been disconected and when i called nyk in vegas they said they confirmed that reno
please let me know where you would like to go from here.