Simple file-upload problem!

A

Anonymous

Guest
Hey!

I'm using the code given in the PHP-documentation for file uploads, but it doesn't work, and I need some help for getting it to work.

$_FILES['userfile']['name'] contains NOTHING, I can't seem to change this, none of the vectors for $_FILES contains anything.

In the upload form I use <input type=file name=userfile>

Can anyone see why this isn't working?

Thanks /Dani
 
First of all make sure that "<input type=file name=userfile>"
is in a form using: enctype="multipart/form-data"

Thank you! I've been messing around in the PHP-code like a cow for 2 days now to fix this... And the problem was so solved so easily, I need to hang around this forum alot more :) Could save me loads of time!
 
Back
Top