i designed a simple php form which accepts the data and then displays it, (well its supposed to ) but its kinda not displaying the values it should..
<html>
<head>
<title> Simple feedback form </title>
</head>
<body>
<form method = "post" action="send_simpleform.php">
<p><strong>Your name: </strong><br>
<input type = "text" Name="sender_name" size = 30> </p>
<p><strong>Email - ID: </strong><br>
<input type = "text" Name="sender_mail" size = 30> </p>
<p><strong>Message: </strong><br>
<textarea name = "message" cols=30 rows=5 wrap=virtual></textarea> </p>
<p><input type = "submit" name = submit" value="send this form"> </p>
</form>
</body>
</html>
The above is the normal html form and below i have included the php code
<?
if(($_post[sender_name] == "") ||
($_post[sender_email]== "") ||
($_post[message] == ""))
{
header("Location: simple_form.html");
exit;
}
$msg = "EMail sent from WWW site \n";
$msg .= "senders Name:\t $_post[sender_name]\n";
$msg .= "Sender's E-Mail:\t$_POST[sender_email]\n";
$msg .= "Message:\t$_POST[message]\n";
$to = "you@youremail.com";
$subject = "Web Site Feedback";
$mailheaders = "From: My Web Site <genericaddress@yourdomain.com>\n";
$mailheaders .= "Reply-To: $_POST[sender_email]\n";
mail($to, $subject, $msg, $mailheaders);
?>
<HTML>
<HEAD>
<TITLE>Simple Feedback Form Sent</TITLE>
</HEAD>
<BODY>
<H1>The following e-mail has been sent:</H1>
<P><strong>Your Name:</strong><br>
<? echo "$_POST[sender_name]"; ?>
<P><strong>Your E-Mail Address:</strong><br>
<? echo "$_POST[sender_email]"; ?>
<P><strong>Message:</strong><br>
<? echo "$_POST[message]"; ?>
</BODY>
</HTML>
i have no idea why isnt the values being displayed...