[eluser]JREAM[/eluser]
I want to Update with the ID from uri-segment(3),
so it would look like users/update/55
My question is, how do you populate the fields with the database info?
I know how to send queries and things, but how do i pop it into that form input?
View:
Code:
<?=validation_errors(); ?>
<?=form_open('users/create')?>
<label>Login</label> <?=form_input('login', set_value('login'))?><br />
<label>Password</label> <?=form_input('password', set_value('password'))?><br />
<label>Email</label> <?=form_input('email', set_value('email'))?><br />
<label>Type</label>
<?=form_dropdown('type', array(
0 => 'Client',
5 => 'Employee',
10 => 'Admin'), set_value('type'))?><br />
<label></label><?=form_submit('submit', 'Create')?>
<?=form_close()?>