IF you are wondering what the problems where is a summery
- line 48 has and extra quotation mark
- line 6 beside the = sign you had a " mark and at the ending was and ' mark so that caused your error.
Here you go i have fixed the problem please try out the code and let me know the results. Remember this forum is here to help so do not hesitate to ask questions.
<?PHP
/*SUBJECT AND EMAIL VARIABLES - ESTES ES UN COMENTARIO*/
$emailsubject ='CONTACT FORM From hulk website';
$webmaster= 'edgardo@vapprinting.com';
$nameField = $_POST['name'];
$lastnameField = $_POST['lastname'];
$ageField = $_POST['age'];
$emailField = $_POST['email'];
$commentsField = $_POST['comments'];
$body = <<<EOD
<BR><HR><BR>
Name: $name <br>
Last Name: $lastname <br>
Age: $age <br>
Email: $email <br>
Comments: $comments <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>Gracias</title>
</head>
<body bgcolor="#000000" text="ffffff">
<br><br><br><br>
<h1>Thank you !!!</1
<hr>
De Click <a href="index.html">A Qui</> Para Regresar A La PAGINA PRINCINPAL
</body>
</html>
EOD;
echo "$theResults";
?>