Got an email form on my page which i have incorporated, but for some reason it isnt working
any1 able to help please,
the error it comes up with is
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/jrankin/public_html/pig-in-pianos/feedback.php on line 53
and this is the actual php file (feedback.php)
<?
// ------------- CONFIGURABLE SECTION ------------------------
// $mailto - set to the email address you want the form
// sent to, eg
//$mailto = "youremailaddress@example.com" ;
$mailto = 'jon_efc@hotmail.com' ;
// $subject - set to the Subject line of the email, eg
//$subject = "Feedback Form" ;
$subject = "Submitted Email From NotablePianos.Co.Uk" ;
// the pages to be displayed, eg
//$formurl = "http://www.example.com/feedback.html" ;
//$errorurl = "http://www.example.com/error.html" ;
//$thankyouurl = "http://www.example.com/thankyou.html" ;
$formurl = "http://www.notablepianos.co.uk/index.html" ;
$errorurl = "http://www.notablepianos.co.uk/error.html" ;
$thankyouurl = "http://www.notablepianos.co.uk/thankyou.html" ;
// -------------------- END OF CONFIGURABLE SECTION ---------------
$name = $POST['name'] ;
$email = $POST['email'] ;
$phone = $POST['phone'] ;
$comments = $POST['comments'] ;
$http_referrer = getenv( "HTTP_REFERER" );
if (!isset($_POST['email'])) {
header( "Location: $formurl" );
exit ;
}
if (empty($name) || empty($email) || empty($comments) || empty($phone)) {
header( "Location: $errorurl" );
exit ;
}
if (get_magic_quotes_gpc()) {
$comments = stripslashes( $comments );
}
$messageproper =
"This message was sent from:\n" .
"$http_referrer\n" .
"------------------------- Query -------------------------\n\n" .
$comments
"\n\n------------------------------------------------------------\n" ;
mail($mailto, $subject, $messageproper, "From: \"$name\" <$email>\nReply-To: \"$name\" <$email>\nX-Mailer: chfeedback.php 2.03" );
header( "Location: $thankyouurl" );
exit ;
?>
[/i]
Any help to sort this wud b greatly appreciated, thankyou