Home › Forums › Back End › PHP Contact – does not validate form in Oprea & Chrome › Re: PHP Contact – does not validate form in Oprea & Chrome
April 6, 2010 at 11:47 am
#73560
Member
Code:
$value){
if(empty($value)){
echo “You have left the ” . $key . ” field blank.”;
die();
}
}
if(empty($value)){
echo “You have left the ” . $key . ” field blank.”;
die();
}
}
// send email
$success = mail($EmailTo, $Subject, $Body, “From: <$EmailFrom>“);
// redirect to success page
// CHANGE THE URL BELOW TO YOUR “THANK YOU” PAGE
if ($success){
print ““;
}
else{
print ““;
}
?>
That should work. It is untested, but try it and get back to me.