need help with a form and PHP file upload

Discussion in 'PHP' started by datrader, Nov 27, 2011.

  1. #1
    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, Nov 27, 2011 IP
  2. Qarizma

    Qarizma Member

    Messages:
    55
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    45
    #2
    Qarizma, Nov 27, 2011 IP
  3. freelanceinphp

    freelanceinphp Member

    Messages:
    134
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    48
    #3
    freelanceinphp, Nov 27, 2011 IP