Advanced PHP tutorials experts
$email
=
$_POST
[
'email'
];
if
(preg_match(
"~([a-zA-Z0-9!#$%&'*+-/=?^_`{|}~])@([a-zA-Z0-9-]).([a-zA-Z0-9]{2,4})~"
,
)) {
echo
'This is a valid email.'
;
}
else
{
'This is an invalid email.'
No comments:
Post a Comment