Welcome Guest, Not a member yet? Register   Sign In
Repopulating checkbox using CI syntax: confused.
#1

[eluser]e-man[/eluser]
I'm working on a form built completely using the CI syntax and I'm looking for a way to repopulate a checkbox using that very syntax.
This is the code for my checkbox:
Code:
echo form_label('Industrie', 'bestemming');
        $data = array(
                      'name'        => 'bestemming[]',
                      'id'          => 'industrie',
                      'value'       => 'industrie',
                      'type'        => 'checkbox'
                    );
        echo form_input($data);

Now how do I combine this with the set_checkbox function?:
Code:
echo set_checkbox('bestemming', 'industrie');


Messages In This Thread
Repopulating checkbox using CI syntax: confused. - by El Forum - 08-23-2009, 10:59 AM
Repopulating checkbox using CI syntax: confused. - by El Forum - 08-24-2009, 12:41 AM
Repopulating checkbox using CI syntax: confused. - by El Forum - 08-24-2009, 05:12 AM
Repopulating checkbox using CI syntax: confused. - by El Forum - 12-26-2010, 03:53 PM



Theme © iAndrew 2016 - Forum software by © MyBB