Unable to write checkbox to mysql db |
I know what the problem is now, but I still can't find the answer -
This code returns 'null' whether I check the box or not, so when I run the if, I always get '0' Code: echo '<tr><td class="app">'.form_label('Swimmer Left:').'</td><td class="app">'.form_input('LeavingDate', $dateLeft).'</td><td class="app">'.form_checkbox('SwimmerLeft','', $row->SwimmerLeft).'</td></tr>'; So have I formatted the checkbox wrong? The form displays the checkbox correctly and if I untick it, it set the field to '0', but if I tick the box nothing changes. Yours Roy Bee Creative Web Design www.bcwd.ltd.uk |
Messages In This Thread |
Unable to write checkbox to mysql db - by GingerNut - 11-30-2015, 01:27 PM
RE: Unable to write checkbox to mysql db - by PaulD - 11-30-2015, 02:26 PM
RE: Unable to write checkbox to mysql db - by GingerNut - 11-30-2015, 02:49 PM
RE: Unable to write checkbox to mysql db - by ridho - 11-30-2015, 04:14 PM
RE: Unable to write checkbox to mysql db - by InsiteFX - 11-30-2015, 08:37 PM
RE: Unable to write checkbox to mysql db - by Bhavesh - 11-30-2015, 09:53 PM
RE: Unable to write checkbox to mysql db - by GingerNut - 12-01-2015, 02:21 AM
RE: Unable to write checkbox to mysql db - by pdthinh - 12-01-2015, 04:58 AM
RE: Unable to write checkbox to mysql db - by GingerNut - 12-01-2015, 08:46 AM
|