Jump to content

Email format validation


TimUSA

Recommended Posts

I am having a problem. this code is excepting [email protected], but not [email protected]?? I am not very good with this so some help would be appreciated!

 

	if (preg_match("/^([a-zA-Z0-9])+([\.a-zA-Z0-9_-])*@([a-zA-Z0-9_-
])+(\.[a-zA-Z0-9_-]+)*\.([a-zA-Z]{2,6})$/", $_POST['email'])) {
    die("Invalid e-mail address");
}

Link to comment
https://forums.phpfreaks.com/topic/97830-email-format-validation/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.