[Gllug] PHP Again

Tom Gilbert tom at linuxbrit.co.uk
Tue Jul 24 17:16:47 UTC 2001


* home at alexhudson.com (home at alexhudson.com) wrote:
> On Tue, Jul 24, 2001 at 04:54:24PM +0100, Jackson, Harry wrote:
> > if ($HTTP_POST_FILES['userfile']['tmp_name']=="none"){
> 
> Isn't $HTTP_POST_FILES['userfile']['tmp_name'] an array rather than a value?
> 
> EG, does $HTTP_POST_FILES['userfile']['tmp_name'][0] work??
> 
> (Convievably you might want to upload more than one file at a time.)

No, $HTTP_POST_FILES is an array (well, hash, but this is php), which is
why you ask for $HTTP_POST_FILES['userfile'] (the one called userfile).

Tom.
-- 
   .^.    .-------------------------------------------------------.
   /V\    | Tom Gilbert, London, England | http://linuxbrit.co.uk |
 /(   )\  | Open Source/UNIX consultant  | tom at linuxbrit.co.uk    |
  ^^-^^   `-------------------------------------------------------'

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list