Getting data from checkbox group
Hi All,
I'm using Universal Email in a PHP site and want to send the selected content of a checkbox group. When I do, only the value of one of the selected checkboxes are sent. I want to send all values in the selected checkboxes as a comma-separated string. I'm used to ASP (trying to learn PHP now) and it's handled automatically in that language.
I've heard about the implode() function, but I need help to implement it in my code.
My mail body goes like this:
//Start Mail Body
$MailBody = $MailBody . "<html><head></head><body>\r\n";
$MailBody = $MailBody . "<p>";
$MailBody = $MailBody . ((isset($_POST["Interests"]))?$_POST["Interests"]:"");
$MailBody = $MailBody . "</p>\r\n";
$MailBody = $MailBody . "</body></html>";
//End Mail Body
Live URL here: Checkboxes.php
Source code here: Test.zip
I'm not real familiar if at all with PHP, can someone shed some light on this for me and help to solve this issue?
Thanks.
Regards
Rune


First the checkboxes need to include "[]" at the end to create an array. for example:
