robouk e-mail forms.
Hi Im new at PHP an Im trying to set up robouk's e-mail form. If you can see what I do wrong.
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /customers/rau77.dk/rau77.dk/httpd.www/mailform/thanks.php on line 1
Parse error: parse error, unexpected T_IF in /customers/rau77.dk/rau77.dk/httpd.www/mailform/thanks.php on line 2
Here is my source codes:
PHP part:
Code:<?php \par
if($sentemail == "2")\{ \par
include("sorry.php"); \par
\par
\}else\{ \par
\par
$num = $sentmessage + 1; \par
setcookie("sentemail","$num",time()+600); //set the cookie \par
\par
$email = "Sender Name:\\t$name\\nSender E- Mail:\\t$thereemail\\nMessage:\\t$message\\nIP:\\t$RE\par
MOTE_ADDR\\n\\n"; \par
$to = "admin@rau77.dk"; \par
$subject = ""; \par
$mailheaders = "From: $thereemail <> \\n"; \par
$mailheaders .= "Reply-To: $thereemail\\n\\n"; \par
mail($to, $subject, $email, $mailheaders); \par
include("thanksecho.php"); \par
\} \par
?>
Here is HTML part:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form method=post action="thanks.php"><table width="300" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="108">Your Name:</td>
<td width="192">
<input type="text" name="name">
</td>
</tr>
<tr>
<td width="108">Your E-mail:</td>
<td width="192">
<input type="text" name="thereemail">
</td>
</tr>
<tr>
<td width="108" valign="top">Your Message:</td>
<td width="192">
<textarea name="message"></textarea>
</td>
</tr>
<tr>
<td width="108"> </td>
<td width="192">
<input type="submit" name="Submit" value="Send">
</td>
</tr>
</table>
</form>
</body>
</html>
THX in advance.. :confused:



