|
Posted by Ian Davies on 10/10/49 11:27
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@mysite.co.uk", "Feedback Form Results",
$message, "From: $email", "-finfo@mysite.co.uk");
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@mysite.co.uk' 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
Navigation:
[Reply to this message]
|