Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   need help with a form and PHP file upload (https://www.warriorforum.com/programming/493919-need-help-form-php-file-upload.html)

ztrader 27th November 2011 02:32 AM

need help with a form and PHP file upload
 
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

eminc 27th November 2011 03:34 AM

Re: need help with a form and PHP file upload
 
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


All times are GMT -6. The time now is 01:23 PM.