close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Getting data from checkbox group

Thread began 8/28/2009 6:21 am by Rune Brynestad | Last modified 5/30/2011 8:26 am by Rune Brynestad | 2942 views | 8 replies

Rune Brynestad

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:

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?



Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...