From: Dave [mailto:[EMAIL PROTECTED] 

>     The Problem:
>     I'm not able to create the right syntax to pass the 
> $HTTP_POST_FILES variable to the function. So the function 
> gets called, but then it stops very early because what I 
> end up giving it is essentially an empty array, so it 
> thinks there's no file to handle.

$HTTP_POST_FILES isn't an auto-global. As such, your function is looking
for a localized variable called $HTTP_POST_FILES and finds nothing.

Add the following as the first line of your function, and it should work
fine:

global $HTTP_POST_FILES;

See here for more info:
http://us3.php.net/manual/en/reserved.variables.php#reserved.variables.f
iles

Hope this helps!


-- 
Mike Johnson             Smarter Living, Inc.
Web Developer            www.smartertravel.com
[EMAIL PROTECTED]   (617) 886-5539

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to