need help with a form and PHP file upload

1 replies
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
#file #form #php #upload
  • Profile picture of the author eminc
    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
    Signature

    The best way to predict future is to create it ― Abraham Lincoln

    {{ DiscussionBoard.errors[5127716].message }}

Trending Topics