Forums > Server-Side Scripting
Subject: Checkbox Driving Me Nuts
| Posted By | ||
|---|---|---|
| UnderDog Sat 7th Jan '10 3:58 user |
I'm sure this has to be another silly thing that I've overlooked but I'm not seeing it.
I have a couple of fields in a database Yes No set to True False Default value 0 A couple of hidden fields on the insert record page that display correctly when looking at the source: Yet when the record is inserted both checkboxes are always checked regardless of whether the value on the page is True or False. Everything else works as it should and I'm using I'm using the checkboxes in the same fashion (or so it seems) elswhere and this is the only place it's not adding/updating appropriately. |
![]() |
| Rob Tue 3rd Jan '10 3:00 admin |
Howdy,
Try setting the values of the checkboxes to 1, I haven't used Dreamweavers server behaviours in a while but it looks like it's looking for a set boolean value, and I know you can't get a more boolean value than True or False, maybe it's just being picky and expecting a 1 or nothing. Worth a try... |
![]() |
| UnderDog Wed 4th Feb '10 23:43 user |
Sorry for not checking back in sooner and thanks for the reply but... yea, that's the first thing that I did... tried 1, -1... still no go. |
![]() |


