View Single Post
  #8 (permalink)  
Old 15-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

I've made a bit of progress, using (website address amended) :

<FORM action="http://www.acme.co.uk/FormScript.php" method="post" name="Feedback-form_Website" enctype="text/plain">


I don't think the "post" method bit was the problem before. I think I might have just saved the php file correctly or something.


The body of the e-mail appears (slightly amended) :

On 15/12/2004, feedback on the Acme website was provided
The following information was submitted :


However, I haven't yet been able to get the fields entered on the feedback form to appear in the e-mail body. How should that be coded ? Something along the following lines ? Do I have to specify the names I've allocated to each and every field, line by line? (Sorry, I must sound really thick!). Thanks


$Body="On $Date, feedback on the Acme website was provided \n".
"The following information was submitted :\n\n";

foreach ($HTTP_POST_VARS as $key=>$value){
if ($key="Submit") continue;
$Body .="$key: $value\n";
}
Reply With Quote