Skip to content

Counter: Counter Powered by  RedCounter Categories:

IN VALID EMAIL FOR PHP

<?php

$email = $_POST[val_email]; (input dari html)

if (!inValidEmail($email))
{
echo “Maaf Email Anda IN VALID..!”;
exit;
}

function inValidEmail($email)
{

if (ereg(”^[^@]{1,64}@[^@]{1,255}$”, $email)){
return true;
}else{
return false;
}

}
?>

Posted in PHP.


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.