Joshua Ghiloni <jd***@SPAM.ME.AND.DIE.cwru.edu> wrote in message news:<be**********@eeyore.INS.cwru.edu>...
Corey wrote: Hello,
I have created a form that is sent via email and am getting the
following error:
Warning: mail() expects at most 5 parameters, 14 given in
/home/sites/site324/web/order_form_test1.php on line 277
What does this mean and how do I solve it?
Thanks,
Corey
My guess is that you are passing each header as a parameter. All
additional headers are to be in one field.
Sorry still confused--Here is the code I am referring to.
{
$sendto = "cg*****@cinci.rr.com";
$firstname = $_POST['firstname'];
$lastname = $_POST['lastname'];
$address = $_POST['address'];
$city = $_POST['city'];
$state = $_POST['state'];
$zipcode = $_POST['zipcode'];
$phone = $_POST['phone'];
$image1 = $_POST['image1'];
$size1 = $_POST['size1'];
$quantity1 = $_POST['quantity1'];
$image2 = $_POST['image2'];
$size2 = $_POST['size2'];
$quantity2 = $_POST['quantity2'];
$comments = $_POST['comments'];
mail( "$sendto",
"First name: $firstname", "Last name: $lastname", "City: $city",
"State: $state", "Zip Code: $zipcode", "Phone: $phone",
"Image1: $image1", "Size1: $size1", "quantity1: $quantity1",
"Image 2: $image2", "Size2: $size2", "quantity2: $quantity2",
"$comments" );
}