RE: [PHP-WIN] this one's got me stumped...
| From: | Dash McElroy | Date: | Wed, 23 Oct 2002 00:26:48 +0000 |
| Subject: | RE: [PHP-WIN] this one's got me stumped... | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-16484@lists.php.net to get a copy of this message | ||
db;
What I would do (and I have not done this...) would be this:
Make the page ask for one file, then upload it, then automatically refresh
(via header("Location: ".$_SERVER['PHP_SELF']); or something similar, and
ask for another file. I think this is how Yahoo's mail program does that.
A little cumbersome, but it should work.
-Dash
-----Original Message-----
From: db [mailto:postmaster@kouryuu.com]
Sent: Tuesday, October 22, 2002 5:25 PM
To: php-windows@lists.php.net
Subject: [PHP-WIN] this one's got me stumped...
...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
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php