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


Multiple data insert with checkbox (variation)

Thread began 6/06/2009 1:20 pm by Bknvc1111729 | Last modified 6/08/2009 9:24 am by Ray Borduin | 906 views | 1 replies |


Multiple data insert with checkbox (variation)

I am trying to get the insert page to use all the data provided before my bolt pattern checkboxes, loop through the bolt patterns adding a new record to the database, if that checkbox was selected and use just that value for that record.

The idea is to be able to insert many records to the database with on click of the insert button. All the data for the records is constant but the bolt pattern. I need only one bolt pattern per record. for instance, if I had 10 different bolt patterns and selected 4, when I click the insert button I would get 4 different records in my database and the only thing different in the records is the bolt pattern.

I hope I explained this clear enough. Attached is my insert page I am working on. Any help would be much appreciated.


Attached Files
Sign in to reply to this post

Ray BorduinWebAssist

Looks like you are on the right track. Now you need to apply the insert multiple records server behavior instead of the insert server behavior.

Before that you will need to add a hidden form element directly before the checkbox like:

<input name="HidField<?php echo $RepeatSelectionCounter_1; ?>" type="hidden" value="1" />

The reason why is that the multiple insert server behavior depends on at least one element from the form existing in order to do an insert and an unchecked checkbox acts as if no values are in the form at all and would break out of the loop.

Anyway... remove the insert server behavior and apply the insert multiple server behavior and see how it works for you from there.

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