$_FILES array

Posted on 16th Feb 2014 by admin

Ok,

I just started experimenting with PHP today. My goal right now is to have people be able to upload files to my website, but I am starting at square one.

I can make a .php print out the name of the file by calling it with $_POST. When I try to access the $_FILES array it does not work. I want to print out the file name and type using $_FILES["file"]["name"] and $_FILES["file"]["type"] by using echo, but it just shows up blank.

What is happening?

Other forums