<?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;
}
}
?>



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