Hello all.
I have just started using PHP and am trying to use it to e-mail me a user's feedback from my website. I have created the following script which, after e-mailing me the information, redirects the user to a "thankyou.htm" page.
<?
$firstname = $_GET["firstname"];
$surname = $_GET["surname"];
$address = $_GET["address"];
$postcode = $_GET["postcode"];
$phone = $_GET["phone"];
$email = $_GET["email"];
$recname = $_GET["recname"];
$message = $_GET["message"];
$normalhours = $_GET["normalhours"];
$overtimehours = $_GET["overtimehours"];
$mymail = "a@a.com";
$mail = ("
___________________________________________________________
FROM: $firstname $surname\n
ADDRESS: $address
$postcode\n
PHONE: $phone\n
E-MAIL: $email\n
RECIPIENT: $recname\n
MESSAGE: $message\n
NORMAL HOURS: $normalhours
OVERTIME HOURS: $overtimehours
___________________________________________________________
");
mail( $mymail, "Feedback received",
$mail, "From: $email" );
header( "Location: thankyou.htm" );
?>
However, if the user then tries to click any other link on the website (say a link to the "contact.htm" page), they get the following error, depending on which browser they are using:
FIREFOX
A popup box saying: "unsaved is not a registered protocol"
IE6
A "Cannot find server or DNS Error" page (like the 404), and the address bar changes to: "unsaved:///contact.htm"
This problem does not occur in the original page, only the "thankyou.htm" page.
Does anyone know why this is and what I can do to stop it?