Hi,
Please help me understand what is wrong with this form. I checked all brackets, codes, and everything looks fine but when I click Submit I get the error above saying that there is an error on the line 31. There's nothing on this line on the Code view.
Below is the code:
<?php
/* Subject and Email Variables */
$emailSubject = 'Friday night';
$emailAddress = 'whomever@whatever.org';
/* Gathering Data Variables */
$titleField = $_POST['title'];
$nameField = $_POST['name'];
$jobField = $_POST['job'];
$affiliationField = $_POST['affiliation'];
$contactField = $_POST['contact'];
$descriptionField = $_POST['description'];
$body = <<<EOD
<br>
Presentation title: $title <br>
Name: $name <br>
Job title: $job <br>
Affiliation: $affiliation <br>
Contact information: $contact <br>
Brief description of presentation: $description <br>
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($emailAddress, $emailSubject, $body, $headers);
?>
Thanks!
Please help me understand what is wrong with this form. I checked all brackets, codes, and everything looks fine but when I click Submit I get the error above saying that there is an error on the line 31. There's nothing on this line on the Code view.
Below is the code:
<?php
/* Subject and Email Variables */
$emailSubject = 'Friday night';
$emailAddress = 'whomever@whatever.org';
/* Gathering Data Variables */
$titleField = $_POST['title'];
$nameField = $_POST['name'];
$jobField = $_POST['job'];
$affiliationField = $_POST['affiliation'];
$contactField = $_POST['contact'];
$descriptionField = $_POST['description'];
$body = <<<EOD
<br>
Presentation title: $title <br>
Name: $name <br>
Job title: $job <br>
Affiliation: $affiliation <br>
Contact information: $contact <br>
Brief description of presentation: $description <br>
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($emailAddress, $emailSubject, $body, $headers);
?>
Thanks!