code segmant and tell me were I am going wrong please
---- HTML ----
<html>
<head>
<title>Email Me</title>
<body>
<p>
</head>
<table width="400">
<tr>
<td>
<form action="email.php" method="POST">
Subject:
<br>
<input type="text" name="subject" size="20" maxlength="30">
<p>
Message:
<br>
<textarea rows="8" name="message" cols="25"></textarea>
<p>
<input type="submit" value="Send">
</form>
</td>
</tr>
</table>
</body>
</html>
------------------------------
----PHP -------
<html>
<body>
<?php
$to = "ot******@aol.com";
$from = "desot******@aol.com";
// $subject = "This is a test email";
// $message = "Dear Desmond,\n\n\n This is just a test email.\n\n
From Chris.";
// $headers = "From: $from\r\n";
$success = mail($to, $HTTP_POST_VARS["subject"],
$HTTP_POST_VARS["message"]);
if ($success)
echo "The email to $to from $from was successfully sent";
else
echo "An error occurred when sending the email to $to from
$from";
?>
</body>
</html>