Feedback form not sending values
- From: "Ian Davies" <iandan.dav@xxxxxxxxxx>
- Date: Sat, 24 Sep 2005 16:52:29 GMT
I am very new to php. I have the following form on a webpage called
wpFeedback.htm
<FORM method=post action="sendmail.php">
Email: <INPUT name="email" type="text"><br>
Message:<br>
<TEXTAREA name="message">
</textarea><br>
<input type=submit>
</FORM>
The sendmail.php is as follows
<?php
mail( "info@xxxxxxxxxxxx", "Feedback Form Results",
$message, "From: $email", "-finfo@xxxxxxxxxxxx");
header("Location: http://www.mysite.co.uk/thankyou.htm");
?>
When the submit button is clicked on the form an email is successfully sent.
However, the 'from' box has no text neither does the message section of the
email, despite then being completed on the form. The only things on the
email are the strings from the script i.e. 'info@xxxxxxxxxxxx' in the 'to'
part of the email and 'Feedback Form Results' in the Title part of the
email.
Does anyone know what Im doing wrong
Ian
.
- Follow-Ups:
- Re: Feedback form not sending values
- From: Sander
- Re: Feedback form not sending values
- Prev by Date: Re: Low $ web host favorites, Seanic killing me...
- Next by Date: Re: Feedback form not sending values
- Previous by thread: Reading Images in XML file.
- Next by thread: Re: Feedback form not sending values
- Index(es):