$_FILES array


Posted on 16th Feb 2014 07:03 pm 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?

No comments posted yet

Your Answer:

Login to answer
345 Like 22 Dislike
Previous forums Next forums
Other forums

filesize() returns 0
I have a socket program that runs in an infinite loop, listening for connections, in this socket I h

About imagecopyresampled()
Hello,

I am looking to use this function to resize parts of an image to a fixed thumbnail siz

Sendmail.php - heading error following check_input
Hi,

I would greatly appreciate some help? I am brand new to PHP and have been searching and e

Server side $_SESSION
how does one keep the session completely server side. no cookies to the browser at all. i need this

Custom list order
Hi there,

I have checked this tutorial and it's great till the point where I want to display

Help with Hyperlink
Hi,

What I am trying to do may be simple, I just can't get it to work. Ok...

I am usin

Mass activity scheduling
Hi experts,

Im facing some problems to deal with mass activity jobs.
When I run some

HeaderSelectedCssClass not working
I have an accordian where I have a drop down list in the first pane and a grid in the second pane.

PHP page loading in Firefox but not in IE
hello,

i am currently doing a project in PHP and i have a problem. If I view the project in M

Lack of simpleXML Documentation
What is up with this.

Look at: http://www.php.net/manual/en/function.simplexml-load-file.php<

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash