Hi am new here and i was wonderng if some one can help me with this css/php contact form. Im getting these following errors from the contact.php file
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 7
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 8
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 9
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 10
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 11
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 12
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 13
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 15
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 16
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 18
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 19
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 20
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 21
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 22
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 23
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 23
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 24
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 25
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 26
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 26
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 27
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 27
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 28
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 29
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 30
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 30
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 31
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 32
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 33
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 34
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 34
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 35
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 36
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 36
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 37
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 38
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/xxxxxx/public_html/contact.php on line 39
Parse error: syntax error, unexpected T_VARIABLE in /home/xxxxxx/public_html/contact.php on line 40
the php code is
{\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf480
{\fonttbl\f0\fswiss\fcharset77 Helvetica;}
{\colortbl;\red255\green255\blue255;}
\paperw11900\paperh16840\margl1440\margr1440\vieww13840\viewh11300\viewkind0
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural
\f0\fs24 \cf0 <?\
$mailto = 'name@name.com' ;\
$subject = "Contact form message - Crazyleafdesign" ;\
$formurl = "http://www.yoursite.com/contact.html" ;\
$errorurl = "http://www.yoursite.com/error.html" ;\
$thankyouurl = "http://www.yoursite.com/thankyou.html" ;\
\
// -------------------- END OF CONFIGURABLE SECTION ---------------\
\
$name = $_POST['name'] ;\
$email = $_POST['email'] ;\
$subject = $_POST['subject'] ;\
$comments = $_POST['comments'] ;\
$spam=$_POST['spam'] ;\
$http_referrer = getenv( "HTTP_REFERER" );\
\
if (!isset($_POST['email'])) \{\
header( "Location: $formurl" );\
exit ;\
\}\
if (empty($name) || empty($email) || empty($subject) || empty($comments) || $spam!="56728") \{\
header( "Location: $errorurl" );\
exit ;\
\}\
$name = strtok( $name, "\\r\\n" );\
$email = strtok( $email, "\\r\\n" );\
$subject = strtok( $subject, "\\r\\n" );\
if (get_magic_quotes_gpc()) \{\
$comments = stripslashes( $comments );\
\}\
\
$messageproper ="---------- Crazyleafdesign.com message ----------\\n\\n" . "\\nSent by : " . $name . "\\nEmail : " . $email . "\\nSubject : " . $subject . "\\n\\n\\nMessage : " . $comments;\
\
mail($mailto, $subject, $messageproper, "From: \\"$name\\" <$email>\\r\\nReply-To: \\"$name\\" <$email>\\r\\nX-Mailer: chfeedback.php 2.04" );\
header( "Location: $thankyouurl" );\
exit ;\
?>}
and html
<form action="contact.php" method="POST">
<fieldset class="fieldset">
<legend>Your Contact Info</legend>
<p style="margin-left:70px">
<label><strong>Name:</strong></label>(<font color="#FE9623">required</font>)<br />
<input type="text" name="name" value="" />
</p>
<p style="margin-left:70px">
<label><strong>E-mail:</strong></label>(<font color="#FE9623">required</font>)<br />
<input type="text" name="email" value="" />
</p>
<p style="margin-left:70px">
<label><strong>Subject:</strong></label>(<font color="#FE9623">required</font>)<br />
<input type="text" name="subject" value="" />
</p><br />
</fieldset>
<fieldset>
<legend>Your Message</legend>
<p style="margin-left:70px">
<label><strong>Message:</strong></label>(<font color="#FE9623">required</font>)<br />
<textarea name="comments" rows="7" cols="40" width="100"></textarea>
</p>
<p style="margin-left:70px">Security code : <strong><font color="#FE9623">56728</font></strong><br />
<label><strong>Please enter the code you see above :</strong></label>(<font color="#FE9623">required</font>)<br />
<input type="text" name="spam" value="" />
</p>
<p style="margin-left:70px">
<input class="button" name="submit" type="submit" value="Submit" />
</p>
</fieldset>
</form>
ANY HELP IS MUCH APPRECIATED