FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Validate email address with PHP





scompany
After about hour surfing PHP documentation, I finali successed to create script that chech email address:

Code:

$email = "name@domain.com";
if (ereg("^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*$", $email)){
//code if address is correct
}
else {
// code if email is not correct
}

mathiaus
I can find a better one within 2 minutes. And what is the point of posting it here?
Unless its unique which it isnt or was requested (again a no!) it shouldnt be posted Evil or Very Mad
scompany
Sorry! Feel free to delete!
Related topics
[php scripts ] phpweather&email
PHP Validation Class
"Hiding" Your Email Address from Bots
Hide Email Address With Javascript - Worth It?
Need super simple method to send a form to an email address
Scrape email address from HTML page content
Email address help
submit email to an email address
Free Tsismosa.com Email Address
"email address will not be abused" notice on sign-
Email Using PHP
Contact form or email address?
Create Web forms,Email forms,PHP forms for free
Changing of my email address, after I am registered
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.