Page 1 of 1

Re: PHP Array to email

Posted: Thu Nov 08, 2012 11:44 pm
by simplypixie
It is very difficult to advise without seeing how you are generating your emails but what you do need to use is a foreach

Code: Select all

foreach ($_POST['i_have'] as $ihave) {
$html .= $ihave;
}

Re: PHP Array to email

Posted: Thu Nov 08, 2012 11:56 pm
by MeroD
You can also use the implode() function to join them in a comma separated string:

$checked = trim(stripslashes(implode(",", $_POST['i_have'])));