Thread: enctype
View Single Post
  #2 (permalink)  
Old Mar 16th, 2006, 21:45
jdickinson jdickinson is offline
Junior Member
Join Date: Mar 2006
Location: Bradford, West Yorkshire, UK
Age: 25
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up Re: enctype

The $_FILES array is where PHP stores all the information about uploaded files, rather than $_POST.

Try changing to: $userfile=$_FILES['userfile']['tmp_name'];

If you want to see what's going on with the from post try adding:
PHP: Select all

<pre>
<?
print_r
($_POST);
print_r($_FILES);
?>
</pre>
This will show you what the post and files variables contain.
Reply With Quote