View Single Post

Old 10-10-2006, 20:00   #9 (permalink)
wurzel
Newbie
 
Join Date: Oct 2006
Posts: 10
iTrader: 0 / 0%
wurzel is an unknown quantity at this point
Arrow

I have cracked it!!!!

Code:
<?php
  $email = $_REQUEST['email'] ;
  $yourmessage = $_REQUEST['yourmessage'] ;
  $name = $_REQUEST['name'] ;
  $address = $_REQUEST['address'] ;
  $postcode = $_REQUEST['postcode'] ;
  $phoneno = $_REQUEST['phoneno'] ;
  $actual_message = $yourmessage."\n--------------------\n".$name."\n".$address."\n".$postcode."\n".$phoneno."\n" ;
  
  mail( "myname@btinternet.com", "Feedback Form Results",
    "$actual_message", "From: $email");
  header( "Location: http://www.mydomain.co.uk/contact_thanks.html" );
?>
Did it by putting all the parameters into $actual_message, and then adding that to mail.

Thanks for your help, Alex
wurzel is offline   Reply With Quote