You are here: Feedback form not sending values « All PHP « IT news, forums, messages
Feedback form not sending values

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация