Hi all,
I am trying to join to pieces of code
the first is very easy
if ($_POST["Email"] =="" || $_POST["Email"] =="your@email.com"){
header("Location: index.html");
exit;
}
how can i combine the function of the above code with something like this below
function is_valid_email($email) {
$result = TRUE;
if(!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$", $email)) {
$result = FALSE;
}
return $result;
}
It dosen't need to echo a message just simply reload the html form that called the php
Any help would be massivly appreciated



Reply With Quote


Bookmarks