Hey all,
I have an array that is created through a form. When a user selects the elements and submits the form he's given the chance to review his selections. Each selection is printer on a separate line. Here's the script:
<input type="checkbox" name="hardware[]">Monitor
<input type="checkbox" name="hardware[]">Computer
<input type="checkbox" name="hardware[]">Keyboard
<input type="checkbox" name="hardware[]">Mouse
<input type="checkbox" name="hardware[]">Printer
<?
$hardware = $_POST['hardware']
//Iterate through the array and display each item on a new line.
foreach($hardware AS $hwItem){
echo $hwItem."\n";
}
?>
Like I said this works great on the review page but in an effort to make things paperless for the company, I also need to have these values e-mailed to a staff member. I'm using PHP mailer and need to know how to make this show up correctly in the e-mail.
What needs to go into this part of the PHP Mailer script:
$mail->Body = "";
TIA for any and all help and I hope this makes sense.
Ryan