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

Checkboxes not working

Thread began 10/05/2013 3:50 pm by mrs | Last modified 10/07/2013 11:36 am by mrs | 690 views | 4 replies


Checkboxes not working

I have run the Update Single Page wizard so many times, but just can't get the checkboxes to work. No matter what I do even if I don't touch them, they always enter a value of 1 into the DB. If I use the Data Assist wizard to create a new range of pages, then checkboxes work fine, but this isn't enabling me to work with the session that security assist creates to identify what user account I am affecting!

I have opened time and again the update record behaviour to bind each checkbox to its relevant DB field, I have set the dynamic value to the relevant DB field, I have set the type to Checkbox 0,1... I am at a loss.

This example code is from the Data Assist wizard which created a new update page which is working:

<input type="checkbox" name="UserVENUE" id="UserVENUE" value="1" <?php if (!(strcmp((isset($_GET["invalid"])?ValidatedField("userupdate","UserVENUE"):"".$row_SecurityAssisttblusers["UserVENUE"].""),"1"))) {echo "checked=\"checked\"";} ?>>

And this is from the Update Single Page wizard where I already have a form already in place:

<input name="UserVENUE" type="checkbox" id="UserVENUE" value="1" <?php if (!(strcmp($row_SecurityAssisttblusers['UserVENUE'],1))) {echo "checked=\"checked\"";} ?>>

There's a big difference in the code produced, but why? When I look at the dynamic values window from the property panel it has different code, so where can I learn what I need to enter there?

Even when I take the code of the Data Assist Update page and add and amend it to my page it still doesn't work! The only way it seems that I can get a checkbox to work is if I use the Data Assist created pages and pass the record ID to be updated through the URL rather than with the session ID!

Could you take a look at the attached file and let me know why the Update Single record wizard hasn't done what I expect and tell me where you think I have gone wrong?


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