Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 27th Nov 2011, 02:32 AM   #1
Warrior Member
 
Join Date: 2011
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default
need help with a form and PHP file upload
Share on: 
fb share twitter share gplus share more share

hi all,

i have a simple POST form on my site which i need the users to upload files also. the form sends all the fields content to the DB.

my question is:

how should i write this in PHP - so users can upload a file and when they click submit - the location of the file, along with the other form fields are sent to the database, and the uploaded file is being uploaded.

please help,

thanks

Looking to buy Forex Leads, Offering Forex ad swaps, Offering $15 CPL Forex Campaign
ztrader is offline  
Unread 27th Nov 2011, 03:34 AM   #2
Hypothetical Paradox
War Room Member
 
eminc's Avatar
 
Join Date: 2011
Location: India
Posts: 82
Thanks: 12
Thanked 20 Times in 19 Posts
Default
Re: need help with a form and PHP file upload
Share on: 
fb share twitter share gplus share more share

The file upload part can be helped by this link

PHP File Upload - PHP Upload Script - Upload file script

Once you get the target path in a link, add up the variable at the code part where you submit the values in the database along with the other form fields.


Mohit

The best way to predict future is to create it ― Abraham Lincoln
eminc is offline  
Closed Thread


Bookmarks

Tags
file, form, php, upload


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 09:14 AM.