PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have 12 checkboxes on my form and when people pick more than one checkbox, my email sends back the results and it only views one of the selected checkboxes. I need them to show all.
Here are some pictures.
This is the actual form with the selected checkboxes.
This is the results that come back in my E-Mail is.
This is in the mail script that processes the form.
Even if I have one of them listed, It only views one still. This is the form script.
what i would do since you have the $coveragesCurrently over and over on the process page just change the name of the checkboxes on the form to CoveragesCurrently TO -> CoveragesCurrently[] then do on the process page...
foreach ($_POST['CoveragesCurrently'] as $key => $value)
{
if ($key == 0)
echo $value;
else
echo ' ,'.$value;
}
adding the [] to the end of the name will make it an array and then you can access each element chosen in the array with the foreach loop. i just put in the if ($key) part to make the commas nice and neat