I have an array of checkboxes in a form,
<input name="books[]" type="checkbox" value="accontbook1">
the form is passing to an email sending script on the next page. My problem is how do I get the array information into the body of the email??
I know how to do the email,
$toaddress = "contact@domain.com";
$from = $firstname .$lastname;
$subjectline = $subject;
$mailcontent = "Customer name: ".$firstname .$lastname"\n"
."Customer email: ".$email."\n"
."Customers order: ".$order."\n";
$fromaddress = "webserver@domain.com";
mail($toaddress, $subjectline, $mailcontent, $fromaddress, $from);
and how to get form array information to print to a page, but not how to assign it to the content of the email.
Any help pointing me in the right direction would be much appreciated.
Thanks Sometimes, when my code just won't behave, I take it outside and make it listen to britney spears music, and when it comes back it's really well behaved. I wonder if it's suffering from post tramatic stress syndrome now..
<input name="books[]" type="checkbox" value="accontbook1">
the form is passing to an email sending script on the next page. My problem is how do I get the array information into the body of the email??
I know how to do the email,
$toaddress = "contact@domain.com";
$from = $firstname .$lastname;
$subjectline = $subject;
$mailcontent = "Customer name: ".$firstname .$lastname"\n"
."Customer email: ".$email."\n"
."Customers order: ".$order."\n";
$fromaddress = "webserver@domain.com";
mail($toaddress, $subjectline, $mailcontent, $fromaddress, $from);
and how to get form array information to print to a page, but not how to assign it to the content of the email.
Any help pointing me in the right direction would be much appreciated.
Thanks Sometimes, when my code just won't behave, I take it outside and make it listen to britney spears music, and when it comes back it's really well behaved. I wonder if it's suffering from post tramatic stress syndrome now..