PHP Code:
<?PHP
///////////////////////////////////////////////////////////////////////
// Author: Jordan
// Date: 9-30-05
// Copyright: 2005
// Description: Validates email addresses inside
// of a function call
///////////////////////////////////////////////////////////////////////
// take a given email address and split it into the
// username and domain.
function ValidateEmail($v_email)
{
list($v_userName, $v_mailDomain) = split("@", $v_email);
if (ValidateEmail2($v_mailDomain, "MX")) {
// this is a valid email domain!
return true;
}
else {
// this email domain doesn't exist! bad dog! no biscuit!
return false;
}
}
?>
__________________
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. | To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
Don't hesitate to ask any questions that you have! Check out our To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. !
Last edited by Jordan; 07-21-2006 at 01:28 PM.
|