snippet library logo
Amazon.com
in category
PHP / Email / Validate Email
Snippet details
ID: 115
Viewed: 2461
Added: 2002-04-09
Version:
Sorry no demo

User Rated at: 4 Stars
Rate This:
Snippets in this catagory         
Show Printable Version
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

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


Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.


Subject:

Reviewed By:

Write a review:





Terms of Conditions
Powered By
Avian Hosting
© 2005 snippetlibrary.com All Rights Reserved.