My Mailing List form doesn't work, I got this error...
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/content/s/w/e/sweb09/html/mailinglist.php on line 8
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/content/s/w/e/sweb09/html/mailinglist.php on line 9
Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE or '$' in /home/content/s/w/e/sweb09/html/mailinglist.php on line 9
Here's the code I used for the mailing list form...
<form method="post" action="http://www.sdesignsstore.com/mailinglist.php">
<input name="message" type="text" value="Enter email address" />
<input type="submit" value="send" />
</form>
I uploaded the php file in the root directory of the site, here's the code for mailinglist.php...
<?
$to="xporcellx@gmail.com";
$subject="Contact From Your Website";
$message=$_REQUEST[message];
mail($to,$subject,$message);
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Message Sent</title>
</head>
<body>
Thank you... Your message has been sent.
</body>
</html>
What am I doing wrong? Thanks!