Welcome Guest, Not a member yet? Register   Sign In
form_radio... set_radio from the database
#1

[eluser]EEssam[/eluser]
Hi,

I'm using the Validation class. I have something like this in my view:

Code:
Active <?php echo form_radio('status', '1', $this->validation->set_radio('status', '1')) ?>
Inactive <?php echo form_radio('status', '0', $this->validation->set_radio('status', '0')) ?>

This is an edit form, so it's working fine once the form is submitted. How can I have one of the options selected when the form is loaded for the first time?

Thanks.




Theme © iAndrew 2016 - Forum software by © MyBB