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

rating

Inserting checkbox

Thread began 11/13/2009 11:27 am by romeo370381 | Last modified 11/16/2009 8:36 pm by Eric Mittman | 828 views | 3 replies |

romeo370381

Inserting checkbox

Dear,

I have a form with two fields which contains check box, and so I would like to know how I can insert check boxes in my database using DataAssist and also, to which type of colums should I set the particular table holding the checkboxes (if other than a set column)

thanks

Sign in to reply to this post

Eric Mittman

Checkboxes are a special type of input. Whatever is present for the value attribute in the checkbox is what you will see inserted into your db, but only if the box is checked, if it is not checked there will be no value for that form element.

You can insert and update with checkboxes by using the regular DataAssist Insert and Update server behaviors. Since you can put any value into the checkbox the data type of the column will depend on what values you want the checkboxes to have. So if you are setting a checkbox to a string value like "test" then you would want to have a varchar type column in your db for this checkbox.

Sign in to reply to this post

romeo370381

not clear

The thing is,

in my form, I have a field which has three check boxes, where people can either select one, or two, and I would like to know how I can make it to insert the selected value, because until now, it giving me only one value and not two, even when two check boxes are selected

Sign in to reply to this post

Eric Mittman

Do you have a page that I can see this on? A checkbox should be an independent form element with it's own value. If it is checked then it will post what is in the value.

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

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