this one's got me stumped...

From: Date: Wed, 23 Oct 2002 00:25:02 +0000
Subject: this one's got me stumped...
Groups: php.windows 
Request: Send a blank email to php-windows+get-16483@lists.php.net to get a copy of this message
...which isn't that difficult cuz i'm a dunce, but anwyay.... i'm trying to upload multiple files at once using the example in the php doc's. i want to be able to upload up to 20 files at once, but less than that at any time. this is what i have (basically): <input class='tbox' type='file' name='userfile[]' size='50'> listed out in a table 20 times and followed by: <input class='button' type='submit' name='submit' value='upload'> "tbox," refers to a style in a css file. anyway, i'm then trying to determine the size of the array with: $size = sizeof($_FILES['userfile']); i would think this would work, however, no matter the number of files i select, $size=5. always! is there something wrong with my syntax here? or is there a better way to do this with this type of array? incidentally, i have register_globals turned off -- not sure if that would affect anything.... thx. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.406 / Virus Database: 229 - Release Date: 10/21/2002

« previous php.windows (#16483) next »