View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Insert Multiple Records Question

Thread began 6/24/2009 8:50 pm by eyethian348566 | Last modified 6/26/2009 9:15 am by eyethian348566 | 965 views | 3 replies

eyethian348566

Originally Said By: Ray Borduin
  The code depends on the naming convention to keep track of which field is filled out. Using the naming convention you recommend you wouldn't be able to get checkboxes to work since unchecked boxes would not be in the array and your form would have arrays of varrying length. This would prevent you from matching the array value to the correct corresponding value.  

Thank you for getting back to me quickly. First off; I simply assigned a counter value to the checkboxes. This way, the selected checkboxes will have a corresponding value, and the form will know what elements were selected, etc. Problem solved. :)

However, as you have aptly illustrated below;

  Also, your technique would prevent users from having a multiselect list or checkbox group in thier form... It actaully requires naming like:
student_0[], student_1[], student_2[]... since the form fields themselves can be arrays already.  

So the array technique in form collection isn't perfect. I'm not gonna quibble with you about that. I originally coded PHP the hard way; via BlueFish on Linux systems. When I first used Dreamweaver CS3, my eyes bugged out; you can do that with a simple server behavior? Never looked back.

I'm trying to get away from that, and try to rely on professional tools like your offerings a little bit more. I guess I will expect to stumble a little bit more of these 'gotcha's' as I use your tools more often, and try to adapt my coding style appropriately. I just hate it when it happens, as it costs me time in debugging my work. So far, DataAssist has generally met my expectations.

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

Content

rating

Layout

rating

Ease of use

rating

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