# \[Coldfusion\] Submitting checkbox to db

**URL:** <https://forum.kirupa.com/t/coldfusion-submitting-checkbox-to-db/237840>\
**Category:** programming\
**Created:** [September 4, 2007, 4:00pm UTC](https://forum.kirupa.com/t/coldfusion-submitting-checkbox-to-db/237840 "2007-09-04T16:00:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bardic](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/bardic/32/3708_2.png) [@bardic](https://forum.kirupa.com/u/bardic)\
**Post date:** [September 4, 2007, 4:00pm UTC](https://forum.kirupa.com/t/coldfusion-submitting-checkbox-to-db/237840/1 "2007-09-04T16:00:52Z")

</div>

Hey all,  
I am trying to make a survey using coldfusion and part of the survey is a checkbox section. The problem arises when I don’t have all the checkboxes checked. It is saying the value I am trying to submit to the database is undefined, which it is.

So I did cfparam but it didn’t work. I also tried checking before inserting into the database that the field is defined and if not to create one with a null value and to insert that but isn’t working either… any idea’s or links to a guide would be much appreciated.
