View Single Post
  #12 (permalink)  
Old 17-12-04
al2004 al2004 is offline
Registered User
 
Join Date: Aug 2004
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
al2004 is an unknown quantity at this point
Thanks again, but I couldn't download it for some reason. Got various scripts from elsewhere. But still can't get the feedback provided on the form to appear in the email body.

<?php
.
.
.
.
.

{
<-------How do I code to get the feedback provided on the form to appear in the e-mail body? Every permutation I've tried hasn't worked. (ie. I get an e-mail with the preamble but none of the feedback!)
}

if(mail($To,$Subject,$Body,"From:$Full_Name")){
header("location:http://www.mysite.co.uk/index.htm");
} else{
echo("Your questionnaire could not be submitted.<br>".
"Please try again later<br>".
"We are sorry for any inconvenience");
exit();
}
?>

The latest is an error message as follows :

Warning: Cannot modify header information - headers already sent by (output started at /content/StartupHostPlus/a/p/www.mysite.co.uk/web/FeedbackScript.php:15) in /content/StartupHostPlus/a/p/www.mysite.co.uk/web/FeedbackScript.php on line 19


Can anyone give me any hints? (I'm starting to lose patience with it now). Thanks. A
Reply With Quote