SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: Feedback form...
-
Mar 2, 2001, 22:22 #1
- Join Date
- Oct 2000
- Location
- Location:
- Posts
- 94
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Hi all!
I'm having trouble with this simple feedback form in PHP.
I fill out the form and press submit, however when I check my mail box, nothing is sent!
I am currently using the datablocks webhost service as a test phase for my site. The actual form and the php.file it accesses for the form to be sent, are both in my www dir along with the rest of my files.
I would be very grateful if you could please point out any (possible mistakes I have made with the following code:
Here is the HTML form:
<HTML>
<HEAD>
<TITLE>E-Mail Form</TITLE>
</HEAD>
<BODY>
<FORM method="POST" action="do_sendform.php">
<P>Your Namebr>
<INPUT type="text" name="sender_name" size=30>
</p>
<P>Your E-Mail Addressbr>
<INPUT type="text" name="sender_email" size=30>
</p>
<P>Messagebr>
<textarea name="message" cols=30 rows=5></textarea>
</p>
<INPUT type="submit" value="Send This Form">
</FORM>
</BODY>
</HTML>
Here is the php file:
<?php
$msg = "Sender Name:\t$sender_name\n";
$msg .= "Sender E-Mail:\t$sender_email\n";
$msg .= "Message:\t$message\n\n";
$recipient = "koncise20@hotmail.com";
$subject = "Web Site Feedback";
$mailheaders = "From: My Web Site <lovetosing> \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, $sender_name</H1>";
echo "<P align=center>Your feedback has been sent.</P>";
echo "</BODY></HTML>";
?>
I have been going crazy trying to figure out just what is wrong, can somebody please please help me!
Thank you very much....
Koncise.
-
Mar 2, 2001, 23:29 #2
- Join Date
- Jul 2000
- Location
- Perth Australia
- Posts
- 1,717
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
There is nothing wrong with the script.... proof?
http://www.firepages.com.au/koncise/
so either the email address is wrong , or your server has problems
Bookmarks