Hi,

I have some inputs in my CodeIgniter view file that I would like to set from the DB. Here's an example section that creates the first input in the form:

PHP Code:
        $user_name = array(
                  
'name'        => 'article[name]',
                  
'id'          => 'name',
                  
'value'       => set_value('article[name]'$article->name),
                  
'maxlength'   => '255',
                  
'size'        => '50',
                  
'style'       => 'width:100%',
                );

        echo 
form_label('Name: *'$user_name['name']).br();
        echo 
form_input($user_name).br();
        echo 
form_error($user_name['name']).br(); 
If I wanted to put the above code in a loop, and change the "$user_name" and "name" in each iteration, how can I achieve this? Variable variables i think?