Eh, this is my first answer to everything that is so sorry if I misunderstood. Anyway, if you are doing an email check in PHP, I have something that might help;
If($_POST['email']){ $Email = $_POST['email']; $Allowed = array('gmail.com', 'yahoo.com', 'ymail.com', etc..); If(filter_var($Email, FILTER_VALIDATE_EMAIL)){ $Domain = array_pop(explode('@', $Email)); If(!In_Array($Domain, $Allowed)){ Echo 'Your response here...'; }}}
or to check email characters you can call a function or test it yourself;
Function checkEmail($Email){ return preg_match("/^[\.A-z0-9_\-\+]+[@][A-z0-9_\-]+([.][A-z0-9_\-]+)+[Az]{1,4}$/", $Email); }
So it will be something like:
checkEmail(' email@domain.com ');
This checks the input, and if it does not have email characters, you can choose what to do.
Hope this helps!
Toxic source share