$_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

controlling/creating accounts with privileges
hi all,
i'm trying to figure out how i can create/control account with privileges, for instance a

Simple program to copy files between two computers over the web
I use logmein free and often need to move files between my two computers. Generally, I move the file

Combining Two Queries
I have two scripts that each work fine by themselves. One is a search script with a variable that de

Clean URLs
Hi I was wandering if anyone has ever implemented URLs on their PHP run website using URLS like wiki

Getting a variable to work in function params
I have this fuction which is inside a class:

Code: public static function generateEmbedCode($

The page should be expire when cilck back button
hi,
i'm new to php world.
i create user registration page.
when i submit it,data goes to my

Nested (echoed) php running wrong script
Got a problem with a php website I'm creating.

In a nutshell, the first page is entirely html

Preserving user-entered linebreaks
Hi, I'm building a web 2.0 thingy from scratch and I wanna display text which users input. It's all

form class help (oop php5)
Hidy Ho Neighbors,

I'm forcing myself to learn oop/classes for php5. It seems like a good id

Will an XHTML DOCTYPE interfere with my PHP if I'm not experienced enough?
I've read this article here: http://friendlybit.com/html/why-xhtml-is-a-bad-idea/

In a nutshe

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