[eluser]mdcode[/eluser]
I have some check boxes on a form that will not pass the 'TRUE' value into the database. I always use 0 for not selected and 1 for selected, but when the form is submitted, the result is always 0.
VIEW
Code:
<?php echo form_checkbox('ss_supplied', '0', FALSE) ?> Substrate supplied
MODEL (part of an array)
Code:
'ss_supplied'=>$this->input->post('ss_supplied', TRUE),
I am currently not using any validation though will be down the line, I just need to make sure it's going to go into the db correctly.