close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Insert data from multiple checkboxes

Thread began 3/30/2011 9:18 am by scr298498 | Last modified 4/01/2011 6:13 am by scr298498 | 1059 views | 3 replies |


Insert data from multiple checkboxes


I am trying to insert the data from multiple checkboxes into one field in my database.

I am adding the checkboxes to the form dynamically like this:

<?php do { ?>
<input type="checkbox" name="file_tags[]" id="file_tags" value="<?php echo $row_tags['tag']; ?>" />
<?php echo $row_tags['tag'] ?><br />
<?php } while ($row_tags = mysql_fetch_assoc($tags)); ?>

I know that to group checkboxes they need to be named like - name="file_tags[]" - to create an array, but I am not sure what code to add to the WA Application Builder Insert section to get the data to be inserted into the DB.

Thanks so much for your time!

Sign in to reply to this post

Jason ByrnesWebAssist

in the insert record behavior, use the following as the value for the file_tags column:

<?php echo((isset($_POST["file_tags"]))?implode(", ",$_POST["file_tags"]):""?>
Sign in to reply to this post


Thanks Jason.

When I paste that into the Wizard and click finish it crashes DA with the message 'while executing onClick in WAAB_Insert_SB.htm' etc...

Sign in to reply to this post


No worries. I replaced it in the code. I see the .dat file fix link above so I'll check that out in terms of the crash.


Sign in to reply to this post

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...