Answers for "verify email address records php"

PHP
1

email verification in php

$email_a = '[email protected]';
$email_b = 'bogus';

if (filter_var($email_a, FILTER_VALIDATE_EMAIL)) {
  	//OK
    echo "L'adresse email '$email_a' est considérée comme valide."; 
}
if (filter_var($email_b, FILTER_VALIDATE_EMAIL)) {
  	//OK
    echo "L'adresse email '$email_b' est considérée comme valide.";
} 
else {
  	// NOT OK
    echo "L'adresse email '$email_b' est considérée comme invalide.";
}
?>
Posted by: Guest on February-23-2021
0

php validate email

//BE CAREFUL!!!
//NEVER VALIDATE A EMAIL WITH A NORMAL PREG MATCH
//I SAW THIS A LOT VALIDATING A EMAIL IS THE BEST TO SEND A EMAIL 
//AND VERIFY
//BECAUSE SOMEONE MIGHT HAVE A RIGHT EMAIL THAT DOESNT WORK BECAUSE OF 
//PREG MATCH
Posted by: Guest on September-30-2020

Browse Popular Code Answers by Language