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

[eluser]Bianca Migueis[/eluser]
hi,
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
Code:
'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?
Code:
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