Warning: Cannot modify header information - headers already sent by (output started at C:\inetpub\vhosts\.............\results.php:5) in C:\inetpub\vhosts\dersnotlari.tk\httpdocs\test1\results.php on line 102
Hatalarını alıyorum yardımcı olabilecek var mı?
Results.php dosyası
$title = "Quiz Results";
echo "$title ";
if (isset ($_POST['submit'])) {
$name = $_POST['name'];
$q1 = "1.)" . $_POST['q1'];
$q2 = "2.)" . $_POST['q2'];
$q3 = "3.)" . $_POST['q3'];
$q4 = "4.)" . $_POST['q4'];
$q5 = "5.)" . $_POST['q5'];
$qp = "6.)" . $_POST['qp'];
}
if ($name == "") {
die ("You forgot something, go back and check over your quiz.");
}
if ($q1 == "1.) ") {
die ("You forgot something, go back and check over your quiz.");
}
if ($q2 == "2.) ") {
die ("You forgot something, go back and check over your quiz.");
}
if ($q3 == "3.) ") {
die ("You forgot something, go back and check over your quiz.");
}
if ($q4 == "4.) ") {
die ("You forgot something, go back and check over your quiz.");
}
if ($q5 == "4.) ") {
die ("You forgot something, go back and check over your quiz.");
}
{
echo<<
Results: $name
$q1
$q2
$q3
$q4
$q5
Go Back To Quiz?
EOT;
}
$Name = $_POST['name'];
$Subject = "Quiz Results";
$Email = "technoesh@gmail.com";
$Message = "Here are the quiz results.";
$align = $_POST['align'];
$to = "$EmailTo";
$subject = "$Subject";
$body = "$Message\n\nQuiz By:
$Name\n$q1\n$q2\n$q3\n$q4\n$q5";
mail($to,$subject,$body);
header("Location: sent.htm");
?>