Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End PHP Contact – does not validate form in Oprea & Chrome Re: PHP Contact – does not validate form in Oprea & Chrome

#73560
Irrorate
Member
Code:
$value){
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.