CodeIgniter Forums

Full Version: I want to upload a file with a different form
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]Unknown[/eluser]
I want to upload with a different form of my code as follows:
http://nh9.upanh.com/b5.s3.d1/59b07e9f37...599.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!