How to retrieve form field value if form is EncType=multipart/form-data?
I have a form with some fields, some are regular inputs and drop-down list, and one is input file. I managed to save the file on my server and save the form data in my database, except the value from the file input. I need to save the name of the uploaded file to my db too, but the field enters empty (even if the file uploads fine). I've tried saving the data to the db as
But no luck...
$imgthumbname = $_FILES['imgthumbname']['name'];
Thanks in advance....