Welcome Guest, Not a member yet? Register   Sign In
Checkboxes
#5

[eluser]Maglok[/eluser]
Hmmm, yes I get that concept for a set_value, my main gripe here is that I just can't seem to get that set_checkbox is the checkbox version. I am probably missing something here.

Controller for a normal field
Code:
$this->form_validation->set_rules('subtitel', 'Subtitel');
$data['subtitel'] = $row->subtitel;

View for a normal field
Code:
<p><label for="subtitel">Subtitel</label>&lt;?php echo form_input('subtitel', set_value('subtitel')); ?&gt;</p>

But if I fill it with database value or the filled in value that wasnt correct...? Nope lost me. $row->gender is a controller thing, but set_value is a view thing. I must be confused here.


Messages In This Thread
Checkboxes - by El Forum - 08-07-2009, 03:20 AM
Checkboxes - by El Forum - 08-07-2009, 04:00 AM
Checkboxes - by El Forum - 08-07-2009, 05:04 AM
Checkboxes - by El Forum - 08-07-2009, 06:17 AM
Checkboxes - by El Forum - 08-07-2009, 06:37 AM
Checkboxes - by El Forum - 08-07-2009, 06:53 AM
Checkboxes - by El Forum - 08-07-2009, 07:51 AM
Checkboxes - by El Forum - 08-10-2009, 05:15 AM
Checkboxes - by El Forum - 08-12-2009, 09:50 PM
Checkboxes - by El Forum - 08-13-2009, 01:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB