Followed tutorial for this site’s PHP Form Mailer. Form works and I receive data fine; however, when visitor clicks on “Submit” button, they see a page saying:
Error 404: NOT FOUND!
Your browser cannot find the document corresponding to the URL you typed in.
What do I need to correct? Below is the end of the php file:
mail($to = “myemail@xx.com”, $subject = “Feedback Form”, $msg,$headers = “From: email” );
if ($forward == 1) {
header (“Location:$location”);
}
else {
echo “Thank you for submitting our form. We will apply your coupon discount when you make your purchase.”;
}
?>
I want the visitor to return to the home page.