Ok Im getting this error message
Parse error: syntax error, unexpected T_STRING in /home/content/r/e/q/requiemofblood/html/application/process.php on line 15
and for the life of me I can't seem to figure out why it's not working, any help would be great.
here is the php code
<?php
if ( ! $conf = formmail() )
{
header('Location: http://www.requiemofblood.com/application/error.html');
}
else
{
header('Location: http://www.requiemofblood.com/application/thankyou.html);
}
function formmail()
{
$form_elements= array(
'FName' => 'Character Name',
'Level' => 'Character Level',
'Email' => 'E-Mail Address',
'Message' => 'Message',
);
$MailBody = '<html><body>';
while( list( $key, $value ) = each( $form_elements ) )
{
if ( empty( $_POST[$key] ) )
{
return false;
}
$MailBody .= $value. '<p>'. strip_tags( $_POST[$key] ) . ' :</p>';
}
$MailTo = 'admin@requiemofblood.com'; //email to send the results to
$MailSubject = 'Contact'; //text in the Subject field of the mail
$MailSent = 'Thank you for contacting us, We will reply within 24 hours.'; //confirm image
$MailHeader = 'MIME-Version: 1.0' . "\r\n";
$MailHeader .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$MailHeader .= 'Guild App <admin@requiemofblood.com>' . "\r\n";
$MailHeader .= 'From: <'. $_POST['Email'] .'>' . "\r\n";
$MailBody .= '</html></body>';
if ( !mail($MailTo, $MailSubject, $MailBody, $MailHeader) )
{
return false;
}
return true;
}
?>