PHP Email Validation Function Script Snippet Check Correct Emails
Posted On Sun Feb 24, 2008 By hostman In Snippets forums topics about simple codes to make programming fun Forums
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:
hope this helps
USAGE:
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";
}
kakoje Mon Jun 30, 2008
gsdgsggsagsa
Jennifer Wed Jun 25, 2008
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.
please let me know where you would like to go from here.
Max Tue Mar 11, 2008
great job hommie, came in just handy.
thanx.
thanx.
Related Content
Information
Forums »
Snippets forums topics about simple codes to make programming fun »
PHP Email Validation Function Script Snippet Check Correct Emails
Snippets forums topics about simple codes to make programming fun »
PHP Email Validation Function Script Snippet Check Correct Emails
Title: PHP Email Validation Function Script Snippet Check Correct Emails
Description: PHP Email Validation Function Script Snippet Check Correct Emails
Tags: php ,email ,validation ,function ,script ,snippet ,check ,correct ,emails
Info: This Post Has Been Viewed 0 Times Since
Date: Sun Feb 24, 2008
Author hostman Received 3 Replies #1378
Date: Sun Feb 24, 2008
Author hostman Received 3 Replies #1378
Share
URL: 

Embed: 

To embed this topic, just copy the code from the "Embed" box. Once you've copied the code, just paste it into your website or blog to embed it
BBCODE:: 

BBCODE is use on forums. You can put this code on all your BBCODE enabled forums like PhpBB, vBulletin® and others. Just Copy and Paste this code on your Posts and Replies on your forums
wallpaperama | Wallpapers | Forums | Terms Of Service
copyright © 2013 wallpaperama - All Rights Reserved - Last Updated Mon May 06, 2013 (-8 GMT)
Powered by: Webune Forums V5
copyright © 2013 wallpaperama - All Rights Reserved - Last Updated Mon May 06, 2013 (-8 GMT)
Powered by: Webune Forums V5