PHP Mail
Posted: Wed Dec 01, 2010 11:28 pm
I am getting an unexpected T-String error on line 12 can anyone help? I have been coding for hours now and have the code blindness! lol Thanks I will sleep much better if I get this solved tonight!
Thanks in advance
Thanks in advance
Code: Select all
<?php
if ($why == 4){
echo"Click the back button and try the question again.";
exit();
}
else{
$region = $_REQUEST['region'];
$lakename = $_REQUEST['lakename'];
$why = $_REQUEST['why'];
$body = "Region: $region
\nLake Name: $lakename";
mail("brettm938@gmail.com", "Lake Add Request", $body);
}
?>
<meta http-equiv="refresh" content="0;url=thankyou.htm">