Email Validation with valid Host name in Magento
$value = $_REQUEST['id'];
$validator = new Zend_Validate_EmailAddress();
if ($validator->isValid($value))
{
echo "Valid";
}
else
{
echo "Invalid";
}
$validator = new Zend_Validate_EmailAddress();
if ($validator->isValid($value))
{
echo "Valid";
}
else
{
echo "Invalid";
}
Please support us, Like us on Facebook.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment