Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] repopulating forms

[eluser]Bianca Migueis[/eluser]
im trying to re-populate a form but its a page to update your info so id like for it to come preloaded... basically ppl are looking at their profile and if they click update i want a form with their old values preloaded...cant think of anything short of creating an entire hidden form on their profile...
id like something like
'value' => (set_value('first'), $personal->first_name),
where the second value is the default if the value is null... i know this doesnt work so any ideas?
if ($this->form_validation->run('personal') == FALSE)
            $data['first'] = array(
                  'name'        => 'first',
                  'id'          => 'first',
                  'value'       => set_value('first'),
                  'maxlength'   => '24',
                  'size'        => '24',
                  'style'       => '',

Theme © iAndrew 2016 - Forum software by © MyBB