开发者

adding attributes to form_open_multipart

开发者 https://www.devze.com 2023-03-14 16:06 出处:网络
I was wondering how could we add attributes to file_upload in codeigniter right now I am using form_open_multipart(\'controller\');

I was wondering how could we add attributes to file_upload in codeigniter

right now I am using form_open_multipart('controller');

but I want to add an id attribute to it.

Any help a开发者_如何学编程ppreciated thanks!


From the User Guide:

form_open_multipart()

This function is absolutely identical to the form_open() tag above except that it adds a multipart attribute, which is necessary if you would like to use the form to upload files with.

So, you would use it in the same way you use form_open(). Example:

form_open_multipart('controller', 'id="my_id"');

Or:

form_open_multipart('controller', array('id' => 'my_id'));
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号