Think you want $HTTP_POST_FILES rather than $HTTP_POST_VARS.

As in $HTTP_POST_FILES['userfile']['name'];

HTH,

Richy

==========================================
Richard Black
Senior Developer, DataVisibility Ltd - http://www.datavisibility.com
Tel: 0141 951 3481
Email: [EMAIL PROTECTED]


                                                                                       
                            
                    "Lee P.                                                            
                            
                    Reilly"              To:     PHP <[EMAIL PROTECTED]>       
                            
                    <lreilly@lanl.       cc:                                           
                            
                    gov>                 Subject:     [PHP] $HTTP_POST_VARS problem    
                            
                                                                                       
                            
                    16/12/2002                                                         
                            
                    15:48                                                              
                            
                                                                                       
                            
                                                                                       
                            




Hi there,

I'm currently using PHP 4.2.2 and I am have encountered some problems
when trying to access $HTTP_POST_VARS. The following statements have the
following return values:

echo $HTTP_POST_VARS['userfile'];
=> C:\\Documents and Settings\\Administrator\\Desktop\\IR Files\\gmp1.ir

echo $userfile;
=> C:\\Documents and Settings\\Administrator\\Desktop\\IR Files\\gmp1.ir

echo $HTTP_POST_VARS['userfile']['name'];
=> NOTHING RETURNED

echo $HTTP_POST_VARS['userfile']['size'];
=> NOTHING RETURNED

echo $userfile_size;
=> NOTHING RETURNED

echo $userfile_name;
=> NOTHING RETURNED

Does anyone know what the problem is? I suspect that the '\\' in the
path may have something to do with it.

Thanks,
Lee


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


________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________





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

Reply via email to