View Single Post

Old 10-10-2006, 16:08   #6 (permalink)
wurzel
Newbie
 
Join Date: Oct 2006
Posts: 10
iTrader: 0 / 0%
wurzel is an unknown quantity at this point
Default

I have modified the script and removed '$embody'. So the script no looks like this:

Code:
<?
  $email = $_REQUEST['email'] ;
  $yourmessage = $_REQUEST['yourmessage'] ;
  $name = $_REQUEST['name'] ;
  $address = $_REQUEST['address'] ;
  $postcode = $_REQUEST['postcode'] ;
  $phoneno = $_REQUEST['phoneno'] ;
  $preferred_means_of_contact = $_REQUEST['preferred_means_of_contact'] ;

  mail( "myname@btinternet.com", "Feedback Form Results",
    "$yourmessage", "From: $email", "$name", "$address", "$postcode", "$phoneno", "$preferred_means_of_contact");
  header( "Location: http://www.mydomain.co.uk/contact_thanks.html" );
?>
When I submit the form, the browser displays the following error message:

Quote:
Warning: mail() expects at most 5 parameters, 9 given in /home/fhlinux181/b/mydomain.co.uk/user/htdocs/sendmail.php on line 11

Warning: Cannot modify header information - headers already sent by (output started at /home/fhlinux181/b/mydomain.co.uk/user/htdocs/sendmail.php:11) in /home/fhlinux181/b/mydomain.co.uk/user/htdocs/sendmail.php on line 12
Any further help greatly appreciated.
wurzel is offline   Reply With Quote