Groups
Groups
Sign in
Groups
Groups
Connecticut PHP Developers Group - CPDG
Conversations
About
Send feedback
Help
PHP Check Email Function
340 views
Skip to first unread message
roja...@gmail.com
unread,
Dec 27, 2007, 3:53:47 PM
12/27/07
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Connecticut PHP Developers Group - CPDG
This function can be used to check for valid emails. Very simple.
---------------------------------------------------------------------------------------------
function checkEmail($email)
{
// checks for proper syntax
if( !preg_match( "/^([a-zA-Z0-9])+([a-zA-Z0-9._-])*@([a-zA-Z0-9_-])+
([a-zA-Z0-9._-]+)+$/", $email))
{
return false;
} else {
return true;
}
}//End checkEmail
--------------------------------------------------------------------------------------------
Reply all
Reply to author
Forward
0 new messages