I use the form validation library for forms in Codeigniter. When I use set_value for input fields to refill, it works fine, but how to do it on the checkboxes? If they are verified, I want them to still be checked if form errors return.
How?
This does not work:
<?php $js = 'onClick="shipping(this.form)"'; echo form_checkbox('fillShipping', 'check', set_value('fillShipping'), $js); ?>
source share