I am trying to set up a Contact Form the problem I have is the redirect when the form is submitted.
This is a WordPress site with PHP 7.4.
I have the HTML on the page, a folder called email in root directory. In the folder I have error_log, index.php and validation.js.
The form is https://thesisfocus.cloudaccess.host/contact which is a test site.
In case I am off the mark can I first ask the following. When the form is submitted it goes 404 to https://thesisfocus.cloudaccess.host/contact/email.
The code I am using:
header("Location:https://thesisfocus.cloudaccess.host/contact?msg=Successful Submission! Thank you for contacting us. We hope to respond within 24 hours.");
header("Location:https://thesisfocus.cloudaccess.host/contact?msg=Error sending content, please try email!");
If the answer is not obvious I can post the full code.