CodeIgniter Forums
I want to upload a file with a different form - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forum-22.html)
+--- Thread: I want to upload a file with a different form (/thread-48182.html)



I want to upload a file with a different form - El Forum - 01-07-2012

[eluser]Unknown[/eluser]
I want to upload with a different form of my code as follows:
http://nh9.upanh.com/b5.s3.d1/59b07e9f372d83607e565c5804c6d50f_39765599.up.jpg

When I click the submit button, the file is uploaded into the directory:
Code:
$config['upload_path'] = './uploads/thongbao/';

and other fields also insert into the database

my table:
+ files
f_id
f_name
f_date
f_activated

+ news
n_id
f_id
n_title
n_body
n_date
n_activated

I want to hit submit, the file is uploaded into the directory "thongbao" insert file names are on the table files-> f_name and other fields to insert into table files.f_id = news.f_id news.

Please me!