Welcome Guest, Not a member yet? Register   Sign In
Checkboxes, checked by default, how to ?
#2

[eluser]jgsd[/eluser]
You could try combining form_checkbox() from the Form Helper with the code you are using on the validation helper.

According to the user guide, extra data can be passed, so perhaps something like this would work (Note: I haven't tested it):

Code:
$validation = $this->validation->set_checkbox('alow_pub', '1')

echo form_checkbox('alow_pub', '1', TRUE, $validation)


Messages In This Thread
Checkboxes, checked by default, how to ? - by El Forum - 07-20-2007, 10:16 AM
Checkboxes, checked by default, how to ? - by El Forum - 07-20-2007, 10:30 AM
Checkboxes, checked by default, how to ? - by El Forum - 07-20-2007, 10:50 AM
Checkboxes, checked by default, how to ? - by El Forum - 07-20-2007, 07:53 PM
Checkboxes, checked by default, how to ? - by El Forum - 07-20-2007, 10:07 PM
Checkboxes, checked by default, how to ? - by El Forum - 07-21-2007, 02:00 AM
Checkboxes, checked by default, how to ? - by El Forum - 07-21-2007, 02:08 AM
Checkboxes, checked by default, how to ? - by El Forum - 07-21-2007, 08:18 AM
Checkboxes, checked by default, how to ? - by El Forum - 07-23-2007, 05:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB