help with PHP "parse" Error ?

Omar

New member
can anyone tell me why im getting this parse error when i submit the form on my page...???

Parse error: parse error in /home/booyah/booyahnyc.com/html/booyah/subscribe.php on line 11

the form located at:
http://www.booyahnyc.com/booyah/testsubscribe.html

and here is the php code..


<?php

/* SUBJECT AND EMAIL VARIABLES */

$emailSubject = '* * * | NEW SUBSCRIBER';
$webMaster = '[email protected]';

/* GATHERING DATA VARIABLES */

$firstField = $_POST ['first']
$lastField = $_POST ['last']
$emailField = $_POST ['email']
$verifyemailField = $_POST ['verifyemail']
$phoneField = $_POST ['phone']
$addressField = $_POST ['address']
$cityField = $_POST ['city']
$stateField = $_POST ['state']
$ziplField = $_POST ['zip']
$dobField = $_POST ['dob']
$genderField = $_POST ['gender']
$skiorsnowField = $_POST ['skiorsnow']
$howField = $_POST ['how']
$messageField = $_POST ['message']

$body = <<<EOD
First Name: $first <br>
Last Name: $last <br>
Email: $email <br>
Verify Email: $verifyemail <br>
Phone Number: $phone <br>
Address: $addres <br>
City: $city <br>
State: $state <br>
Zip: $zip <br>
DOB: $dob <br>
Gender: $gender <br>
Ski Or Snowboard: $skiorsnow <br>
How did you hear about us: $how <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>THIS IS A TEST</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
background-color: #f1f1f1;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
font-style: normal;
line-height: normal;
font-weight: normal;
color: #666666;
text-decoration: none;
}
-->
</style>
</head>

<div>
<div align="left">Thank you for Subscribing!!!</div>
</div>
</body>
</html>
EOD;
echo "$theResults";
?>
 
Back
Top