I'm creating a page that will allow the owner of a site I'm making the ability to add new company logos to his site.
I created a form that asks for the company's name, a brief description of the company as well as a file field that a user would use to upload a file to the server.
As I progress, I like to test things out as I go so I don't get too crazy w/o the basics working. While I can grab the the name and description of the company from the post values, it seems I am unable to get the file upload value.
I have tried searching around the net and these forums for whether or not global variables being turned off is the problem. I also ran a phpinfo() and see that upload_tmp_dir is set to "no value".
So my questions would be:
Do global variables have to be turned on to allow a user to upload a file?
Does the upload_tmp_dir need to have a value for the script to work?
If either of the above are not a factor, is there any tutorial or does anybody have any experience creating something similar?
[/list=1]
Many thanks in advance.