Welcome Guest, Not a member yet? Register   Sign In
adding attributes to file_upload
#1

[eluser]technology.guy[/eluser]
Hi, everyone,

I was jus playing around with file_upload(),

right now I use file_upload('userfile') and it works fine.

I want to know whether there is a way I can add attributes, basically I want to give it a id.

Thanks
#2

[eluser]RHS[/eluser]
You can pass a variable with the data

Code:
$data = array(
              'name'        => 'upload_name',
              'id'          => 'upload_id',
            );

echo form_upload($data);




Theme © iAndrew 2016 - Forum software by © MyBB