[eluser]pvperez1[/eluser]
Hi guys,
I'm new to codeigniter.
I have a group of form that repopulates from database data. This group of form is on an edit page of the site i'm creating.
One of the input fields is readonly (id of the record), because I want the user to see the record ID of what she is editing, however, if that person made a mistake in filling the other forms, the page will reload because of form_validation. All the other fields retain their value except for the readonly form, and you cannot put anything on it because its readonly.
Here is the code in my view:
<div class='form-inline'>
<div class='input-group'>
<div class="input-group-addon">Book ID:</div>
<input class="form-control" type="text" name="bookID" value="<?php echo set_value('bookID',(isset($results[0]->id)) ? $results[0]->id : '');?>" readonly>
</div>
</div>
Thanks everyone