close ad
WARNING PC USERS: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Radio button value not saved correctly into database

Thread began 3/24/2015 4:39 am by info4753 | Last modified 3/24/2015 1:36 pm by Jason Byrnes | 533 views | 5 replies |

info4753

Radio button value not saved correctly into database

I have a form with a radio button ("EintragInPatentafel") with two values, one for 1 one for 0. The value is correct inside the email but not correctly saved into the database (always 1). Can you please have a look at it? Files are attached. Thanks in advance.

Sign in to reply to this post

Jason ByrnesWebAssist

in the insert behavior, you have set the data type for the radio button column to be:
Checkbox 1/0

this data type should be used for checkboxes only, not for radio buttons.

With a checkbox it can have a value or be blank, so a checkbox would send either the checked value or "" meaning no value. the Checkbox 1/0 data type converts the blank value to 0. and converts the checked value to 1. doesn't matter what the checked value is it could be yes, and it will get converted to 1.

with your radio button, you are sending either 0 or, no blank value. when 0 is selected it gets converted to 1, because it is not blank.

you should use the integer data type instead.

Sign in to reply to this post

info4753

Thanks Jason.

You mean I can keep radio button value = 1 for the yes button, and value = 0 for the no button, and use integer value for the insert behavior?

Sign in to reply to this post

Jason ByrnesWebAssist

yes, that is correct.

Sign in to reply to this post

info4753

Muchos gracias Jason.

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

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