I keep getting the following error:
Parse error: syntax error, unexpected T_STRING in /homepages/17/d241067435/htdocs/phptester/htdocs/txt/80c09810f0de96091acc3373484b06ff-70.179.172.47_6.php5 on line 38.
line 38 is: echo " The survey was not submitted ";
I do not know what is wrong with it.
I need help as soon as possible!
Thank you very much!
<?php
if (isset($_POST['submit']))
{
$to = "andresaa@ksu.edu";
$subject = "Survey Results";
$Fname = $_POST["Fname"];
$Lname = $_POST["Lname"];
$gender = $_POST["gender"];
$email = $_POST["email"];
$address = $_POST["address"];
$company = $_POST["company"];
$salary = $_POST["salary"];
$work = $_POST["work"];
$hobby = $_POST["hobby"];
$classes = $_POST["classes"];
$commments = $_POST["comments"];
$ranking = $_POST["ranking"];
$message = "
<html>
<head>
<title>E-mail Forwarding</title>
</head>
<body>
<p>Thank you very much!</p>
<p> Your results have been sent to Andres Abastoflor</p>
</body>
</html>
”;
mail($to, $subject, $message);
header('Location: confirmation.html');
}
else
{
echo " The survey was not submitted ";
?>