php mail and arrays
Posted: Fri Oct 30, 2009 1:27 pm
I have a simple submit form with a few check boxes. I'm storing the results of what's being checked into an Array.
How can I use the mail function to send the results of the array?
Just for a small example, I have:
I don't want the array printed of course, but I want the results of the array in the main mail message.
How can I use the mail function to send the results of the array?
Just for a small example, I have:
Code: Select all
$mailcontent=
foreach ($location as $loc)
{
echo $loc . "<br/>";
} . " Thank you!" ;
mail($toaddress,$subject, $mailcontent);