Hi,
I was wondering if anyone could help me. This site is for college, and I have everything else working, except for this PHP thingy. This is the error message I get:
Parse error: syntax error, unexpected T_SL in /home2/exoduses/public_html/phptest.php on line 16
----------------------------------------------------------------------------------------------------------------------
And this is my PHP code:
------------------------------------------------------------------------------------------------------------------
Any help would be much appreciated!
Thanks in advance,
Jay
I was wondering if anyone could help me. This site is for college, and I have everything else working, except for this PHP thingy. This is the error message I get:
Parse error: syntax error, unexpected T_SL in /home2/exoduses/public_html/phptest.php on line 16
----------------------------------------------------------------------------------------------------------------------
And this is my PHP code:
Code:
[I]<?php echo 'code tags!'; /* subject and email variables */ $emailSubject = 'Crazy PHP Scripting!'; $WebMaster = '__MUNGED__'; /* Gathering Data Variables */ $emailField = $_POST['email']; $nameField = $_POST['name']; $commentsField = $_POST['comments']; $body = <<<'EOD' <br><hr><br> Email: $emailField <br> Name: $nameField <br> Comments: $commentsField <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' <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <link href="site.css" rel="stylesheet" type="text/css" /> </head> <body> <p>Congratulations! Your Message was sent!</p> <p>click <a href="homepage.html">here</a> to return to the mainpage</p> </body> </html> EOD; echo "$theResults"; ?>[/I]
Any help would be much appreciated!
Thanks in advance,
Jay
Comment