First, please make sure PHP works on your server.
1. PHP got error, HTML is OK:
\t (means "tab", you may delete it)
$xxx : a name start with $ is a variable.
In this sample, $xxx get data from your html form <INPUT name="xxx">, so, the name must be same.
$
_POST[sender_name] is not equal to
sender_name, see?
========================================
FORM & PHP :
<FORM method="POST" action="
CGI.php">
sender: <INPUT type="text" name="
A" size=100>
email: <INPUT type="text" name="
B" size=100>
message: <textarea name="
C" cols=50 rows=50></textarea>
<INPUT type="submit" value="Send This Form">
</FORM>
CGI.php :
<?
$msg = "Sender Name:
$A\n";
$msg .= "Sender E-Mail:
$B\n";
$msg .= "Message:
$C\n\n";
$recipient = "webmaster@shplooky.com";
$subject = "Shplooky Feedback";
$mailheaders = "From: Shplooky Network <> \n";
$mailheaders .= "Reply-To:
$B\n\n";
mail($recipient, $subject, $msg, $mailheaders);
echo "<HTML><HEAD><TITLE>Form Sent!</TITLE></HEAD><BODY>";
echo "<H1 align=center>Thank You,
$A</H1>";
echo "<P align=center>Your message has been sent.</P>";
echo "</BODY></HTML>";
?>
========================================
So, your php should be:
$msg = "Sender Name:\t$sender_name\n";
$msg .= "Sender E-Mail:\t$sender_email\n";
$msg .= "Message:\t$message\n\n";
$recipient = "webmaster@shplooky.com";
$subject = "Shplooky Feedback";
$mailheaders = "From: Shplooky Network <> \n";
$mailheaders .= "Reply-To: $sender_email\n\n";
mail($recipient, $subject, $msg, $mailheaders);
echo "<HTML><HEAD><TITLE>Form Sent!</TITLE></HEAD><BODY>";
echo "<H1 align=center>Thank You, $_POST[$sender_name]</H1>";
echo "<P align=center>Your message has been sent.</P>";
echo "</BODY></HTML>";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
P.S. you may delete <> (in the $mailheaders line)
2. check the php file name is SAME as your html <FORM method="POST" action="do_sendform.php">
3. if can't, try to delete "\t", and then try again.
(I've ever tried to delete \t, and then OK. I don't know why.)
Good luck! :cool2: