The PHP file download form can not submit a POST variable?

advertisements

I have a PHP file upload form with method="post" enctype="multipart/form-data"

I am trying to do a <input type = "hidden" name = 'something' value = "something"/> along with the input for file upload, but I am not able to get the value of 'something' in the upload handling script like $_POST['something']

Is it not possible to use POST variables along with a file upload? Any other alternative on how I can pass information to the upload handling script?


First, having some consistency with which quotes you use would be a good first step.

Second, you have got the enctype correct, so what may be an issue is you've exceeded the servers file upload size or post size settings. Try upload a smaller file and see if that works.