<?php
function is_email($email)
{
if(!preg_match('/^[A-Za-z0-9!#$%&\'*+-\/=?^_`{|}~]+@[A-Za-z0-9-
]+(\.[A-Za-z0-9-]+)+[A-Za-z]$/', $email)){
return false;
}
else {
return true;
}
}
$email = $_REQUEST['login'];
if( is_email($email)) echo "E-mail правильний";
else echo "Введіть правильний e-mail";
?>