Snippet details
ID: 115
Viewed: 2461
Added: 2002-04-09
Version:
Sorry no demo
This will see if the user entered the correct syntax for an email address. should except email as the folowing:
test_@abc.abc
or
_test@abc.com
test_@abc.abc
or
_test@abc.com
General Details
Snippet uploaded by: snippet
Email : webmaster@snippetlibrary.com
Snippet By: unknown
<!---Head--->
none
<!---Body--->
if (!preg_match('/^[-!#$%&'*+\./0-9=?A-Z^_`{|}~]+@([-0-9A-Z]+.)+([0-9A-Z]){2,4}$/i', $email)) {
echo("<br><b>Your email doesn't seem to be valid. </b>");
}
No Reviews to show
