An error occurred. Please try again."; } if (!$name) { $entryOK = false; $reason .= "
  • Please enter your name
  • "; } if (!$email) { $entryOK = false; $reason .= "
  • Please enter your email address
  • "; } if (!$comments) { $entryOK = false; $reason .= "
  • Please type a message!
  • "; } if (!$entryOK) { $_SESSION['reason'] = $reason; header("Location: http://" . $_SERVER['HTTP_HOST'] . "/help/contact.php"); return; } $recipient = "stephenjsweeney@battleforthesolarsystem.com"; $message = $comments; $message .= "\n\n"; $message .= "User Agent: $HTTP_USER_AGENT\n"; $message .= "Referer: $HTTP_REFERER\n"; $message .= "Remote Address: $REMOTE_ADDR\n"; session_destroy(); if (!$_POST["emailConfirm"]) { if (!sendMail($recipient, "General Feedback", $message, "plain", $email)) { header("HTTP/1.0 500 Internal Server Error"); header("Location: http://" . $_SERVER['HTTP_HOST'] . "/500.php"); return; } } header("Location: http://" . $_SERVER['HTTP_HOST'] . "/help/thanks.php"); ?>