I have created a email form using PHP that is called by a html file.
The form works great but it doesn't take the user back to the previous page once the email has been sent through.
Can some one help me do this?
Here is my code:
$name = $_POST['name'];
$visitor_email = $_POST['email'];
$message = $_POST['message'];
$email_from = 'email@example.com';
$email_subject = "New Form submission";
$email_body = "You have received a new message from the user $name.\n".
"Here is the message:\n $message";
$to = 'firstname.lastname@example.org';
$headers = "From: $email_from \r\n";
$headers .= "Reply-To: $visitor_email \r\n";