Jump to content

[SOLVED] $_FILES array


mechedd

Recommended Posts

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?

 

-mechedd

Link to comment
https://forums.phpfreaks.com/topic/177860-solved-_files-array/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.