Ok, I think I got a good php form set up, but I keep getting these errors when I click submit on my form...
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/prom/prominencemagazine-www/email/email.php on line 2
Parse error: parse error in /home/prom/prominencemagazine-www/email/email.php on line 2
This is the email.php (it's pretty long, for a subscription):
<?php
if (!isset($_POST['submit_form'])):
?>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">
<form action="<?=$HTTP_SERVER_VARS['PHP_SELF']?>" method="post">
Name:<input type="text" name="newfname" size="35" value=""><br>
Email:<input type="text" name="newemail" size="35" value=""><br>
<input type="submit" name="submit_form" value="">
</form>
</body>
</html>
<?php else:
$newfname = $POST['newfname'];
$newemail = $POST['newemail'];
$qc = $_POST['qc'];
// Send html autoresponder email or whatever
$to = $newemail;
$subject = "thank you for subscribing";
$message = "
<html>
<head>
<title></title>
</head>
<body>
<font style=\"font-family:tahoma, arial, verdana;font-size:10pt\">
Dear $newfname,
<p>Thank you for subscribing. You will receive an email regarding your subscription within 2-3 business days.</p>
<p>Best Regards,</p>
<p>Prominence Magazine<br>
www.prominencemagazine.com</br>
</font>
</body>
</html>
";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .="From: Prominence Magazine <badboy_ES@hotmail.com>\r\n";
mail($to, $subject, $message, $headers);
// Done sending autoresponder
$date = date("F j, Y, g:i a" );
// Notify the new submission to the administrator
$to = "badboy_ES@hotmail.com";
$subject = "I would like a subscription to Prominence Magazine";
$message = "
The following submission has been received.
Name: $newfname $newlname
Email: $newemail
$qc
Form submitted on $date
";
$header = "From: My Newsletter <badboy_ES@hotmail.com>";
mail($to, $subject, $message, $header);
// Done notifying to administrator
?>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">
<font style="font-family:tahoma, arial, verdana;font-size:10pt">
Dear <?=$newfname?>,
<p>Thank you for subscribing. You will receive an email regarding your subscription shortly.</p>
<p>Best Regards,</p>
<p>Prominence Magazine<br>
www.prominencemagazine.com
</font>
</body>
</html>
<?php endif; ?>
Can anyone see anything wrong with my php coding? Is there something I messed up, cause I don't know php too well, I had help on this.