checkbox data not updating
Hi
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)
TIA
Cheers
Chris