Hi
I have a problem with the $_POST variable in my feedback form. The form sends the data ok but it wont mail properly.
Here is the code of feedback.php
<?php
ini_set ('display_errors' ,1);
error_reporting (E_ALL & ~E_NOICE);
if (empty ($name)) {
print 'You did not enter a name...';
}
if (empty ($comment)) {
print 'You did not enter a comment...';
}
$body = "comment on $story";
$story = $_POST['story'];
mail ('williamparry@gmail.com', 'comment on $story', $body, 'From: sender');
print "Thank you <b>$name</b> for your feedback on the story <b>$story</b>";
print "<br /><br />";
print "Your comment was <b>$comment</b>";
?>
Any ideas please?