I am gettin a error message on this script can someone help me. I can't see what is wrong. Thanks in advance for any help you can give me.
here is the error and code.
Parse error: syntax error, unexpected T_VARIABLE in /home/a4284579/public_html/contactformphp. php on line 27
here is the error and code.
Parse error: syntax error, unexpected T_VARIABLE in /home/a4284579/public_html/contactformphp. php on line 27
Code:
<?php /* Subject and Email Variables*/ $emailSubject = 'Client Information Scripting!'; $webMaster = 'gravizdesign@live.com'; /*Gathering Data Variables*/ $emailField = $_POST['email']; $nameField = $_POST['name']; $messageField = $_POST['message']; $body = <<<EOD <br><hr><br> Email: $email<br> Name: $name<br> Message: $message<br> EOD; $headers = "From: $email\r\n"; $headers .= "Content-type: text/html\r\n"; $success = mail($webMaster, $emailSubject, $body, $headers /* Results rendered as HTML */ $theResults = <<<EOD <html> <head> <title>Thesiscomplete.ie - Thesis bounding made easy</title> <meta http-equiv="refresh" content"5;URL=http://thesiscomplete.ie/contactus.html"> <style type="text/css"> <!-- body { background-color: #444; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 16px; font-style: normal; line-height: normal; font-weight: normal; color: #fec001; text-decoration: none; padding-top: 200px; margin-left: 200px width: 800px } --> </style> </head> <div> <div align="centre">Your email will be answered as soon as possible. You will be returned to Thesiscomplete in a few seconds!</div> </body> </html> EOD; echo "$theResults"; ?>
Comment