CFPARAM and How to Uncheck a Checkbox
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 12596
Total Votes: 145 votes
Category: Cold Fusion/Cold Fusion Misc
Submitted on: 2008-03-07 05:14:11
Submitted By: Devesh Khanna
Description:For anyone new to application development, you may be perplexed when you create your form for editing some data that should allow a user to uncheck a checkbox and update a record to a status of not checked.
You will sooner or later discover an oddity about HTML forms. HTML forms won't allow you to uncheck like you think you should be able to. If you uncheck the checkbox, the value becomes NULL and the form doesn't bother to pass the field.
You will find that ColdFusion does have a simple solution and much more with the CFPARAM tag. CFPARAM and How to Uncheck a Checkbox tutorial More detail...