Jump to content

cannot get email to validate correctly


SuicidalDriver

Recommended Posts

When using the below code, even with a valid email address (gmail) it returns invalid email, even my work address does not validate. What am I doing wrong?

 

if(!filter_var($Email, FILTER_VALIDATE_EMAIL)) {
$error_message .= 'The Email Address you entered does not appear to be valid.<br />';
}

 

Link to comment
https://forums.phpfreaks.com/topic/281665-cannot-get-email-to-validate-correctly/
Share on other sites

I just checked an I was using the wrong vaiable, I have fixed that but still wont validate correctly

if(!filter_var($$Email_from, FILTER_VALIDATE_EMAIL)) {
	$error_message .= 'The Email Address you entered does not appear to be valid.<br />';
}

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.