We updated our server software and for some reason this form isnt working anymore. It is giving me the error Parse error: syntax error, unexpected T_STRING in /Library/WebServer/Documents/photos/form.php on line 5
I have posted the code below, any help would be VERY appreciated. Thanks!
<?php
if (isset ($HTTP_POST_VARS)) {
$_POST = &$HTTP_POST_VARS;
}
$to = "email@email.com";
$subject = "Photo Assignment";
$headers = "From: " . $_POST["reporter"];
$headers .= "<" . $_POST["email"] . ">\r\n";
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
$headers .= "Return-Path: " . $_POST["email"];
$message .= "Photo Assignment\n\n";
$message .= "Reporter: " . $_POST["reporter"] . "\r\n";
$message .= "Type: " . $_POST["type"] . "\r\n";
$message .= "Slug: " . $_POST["slug"] . "\r\n";
$message .= "Summary: " . $_POST["summary"] . "\r\n";
$message .= "Who: " . $_POST["who"] . "\r\n";
$message .= "Why: " . $_POST["why"] . "\r\n";
$message .= "Place: " . $_POST["place"] . "\r\n";
$message .= "Contact: " . $_POST["contact"] . "\r\n";
$message .= "Other: " . $_POST["other"] . "\r\n";
if ((!$reporter) || (!$type) || (!$slug) || (!$summary) || (!$who) || (!$why) || (!$place) || (!$contact))
{
Print "Oops, you forgot to fill in some information. Please use your back
button and try again...don't be bashful.";
} else {
mail($to, $subject, $message, $headers);
Print "Thanks ! You're the best reporter ever!";
}
?>