I'm developing a website for a charity.
Having tested the script it works until it gets to the redirecting
part which it seems to ignore.
So once form data has been submitted it stops at this page.
Have I missed something? or could this be a server issue? or scripts I have written work fine.
Not sure why this one wouldnt.
Code:
<?php
// Once code below has been executed goto thank you page at Solace website
header("http://www.mediamole.net/solaceweb/thankyou.html");
?>
<?php
// Start of email script to post information submitted from contact form
// to main email address of Solace
// start building email mail string
$msg = "$_POST[comments]";
// set up the mail
$recipient = "To:[email protected]";
$subject = "Message about $_POST[subject] from $_POST[yourname]";
$mailheaders = "From: $_POST[email]";
// send email
mail($recipient, $subject, $msg, $mailheaders);
// End of email script
?>
Gaz