RE: weird upload problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm



> -----Original Message-----
> From: Sebastian [mailto:sebastian@xxxxxxxxxxxxxxxxxxx] 
> Sent: 12 January 2005 01:59
 

> <form action="/" enctype="multipart/form-data" method="post">
> 1: <input type="file" name="image[]"><br />
> 2: <input type="file" name="image[]"><br />
> 3: <input type="file" name="image[]"><br />
> 4: <input type="file" name="image[]"><br />
> 5: <input type="file" name="image[]"><br />
> 6: <input type="file" name="image[]"><br />
> <input name="submit" type="submit" value="submit">
> </form>
> 
> 
> if (isset($_FILES['image']))
> {
>  $number = 0;
>     for ($i = 0; $i < count($_FILES['image']); $i++)

      foreach ($FILES['image'] as $i=>$imagefile)

Solves both problems.

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services, JG125, James
Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS,
LS6 3QS,  United Kingdom
Email: m.ford@xxxxxxxxxxxxxx
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux