Jump to content


This topic is now archived and is closed to further replies.


Lost form data

Recommended Posts

Am a total idiot/ novice at php. I was tring to get a very basic guestbook for my local NGO/ interest group set up and thought I had it. Everything works except that the form data, the most important part, never comes out in the e-mail at the other end. Can someone help? Thanks.


I have the following form html on a web-page:


<form action="sendmail.php" method="post" enctype="multipart/form-data" name="input">

<h3><font color="#003366" face="Arial, Helvetica, sans-serif">If you have any comments, news or ideas please take the time to fill out this form.</font></h3>

<p><font color="#003366" face="Arial, Helvetica, sans-serif">Name:<br>

<input type="text" name="name"

value="yourname" size="20">



<input type="text" name="mail"

value="yourmail" size="20">



<input type="text" name="comment"

value="yourcomment" size="40">


<p> <font color="#003366" face="Arial, Helvetica, sans-serif"><br>

I am interested in taking out a membership, please send me some more details:

<input type="checkbox" name="InterestedinMembership">

</font> </p>


<input type="submit" value="Submit">




The php file is coded thus:



$name = $_REQUEST['name'] ;

$mail = $_REQUEST['mail'] ;

$comment = $_REQUEST['comment'] ;

$InterestedinMembership = $_REQUEST['InterestedinMembership'] ;


mail( "me@myorg.com", "Feedback Form Results",

$message, "From: $mail" );

header( "Location: http://www.myorg.com/thankyou.htm" );




Any ideas? Am I missing the obvious?

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.