Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
need help with a form and PHP file upload
Old 11-27-2011, 03:32 AM need help with a form and PHP file upload
Average Talker

Posts: 23
Name: paul
Trades: 0
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
datrader is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-27-2011, 11:26 AM Re: need help with a form and PHP file upload
Physicsguy's Avatar
404 - Title not found

Posts: 920
Name: Scott Kaye
Location: Ontario
Trades: 0
I use this code every time I write an upload script, then modify it to my needs:

http://www.w3schools.com/php/php_file_upload.asp
__________________
Check out my
Please login or register to view this content. Registration is FREE
or my
Please login or register to view this content. Registration is FREE
!
Physicsguy is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to need help with a form and PHP file upload
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.22008 seconds with 12 queries