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

checkbox data not updating

Thread began 5/13/2010 10:18 am by info97301 | Last modified 5/26/2010 1:59 pm by info97301 | 1794 views | 11 replies


checkbox data not updating


I created a form with DataAssist, which works fine.

I then added some fields in the database table (enum field type, 'yes' or 'no', 'no' by default)

I returned to the form and added checkboxes for the additional fields, altered the update behaviour etc etc.

However, the fields are not updated if I try to change any of them.

If I make a change direct in the database, then the changes are reflected when the page opens (i.e. certain fields will be checked), so the retrieving part of the page is working properly.

In the form, the checked value = yes :

<input <?php if (!(strcmp($row_WADAlistings['MobilityIcon'],"yes"))) {echo "checked=\"checked\"";} ?> name="ckmobility" type="checkbox" id="ckmobility" value="yes" />

In the update behaviour, the update field is set to type 'text, with the value such as the following:

<?php echo ((isset($_POST["ckmobility"]))?$_POST["ckmobility"]:""); ?>

I have even tried creating a new page just with the checkboxes on, but this doesn't work either (I note it defaults to checkbox value = '1'', do I need to change the field format in the database? Not a problem as I'm still developing at the moment)



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