Sorry, now I noticed I forgot to add [$i]: if(!$_FILES['photo']['tmp_name'][$i]) break;
Marek Kilimajer wrote:
you need to do it another way, e.g.: for($i=0; $i < MAX_FILES; $i++) { if(!$_FILES['photo']['tmp_name']) break; ... now work with the file. } electroteque wrote:hi i need to do a foreach on post files array ie
<input type=file name=photo[]>
_REQUEST['photo'] or _POST['photo'] doesnt work
only _FILES['photo'] works and if i do a foreach on this it gets the 5
associated array values for it not on the input value array ? say i had 2
input files i should get a count of 2 not 5 :|
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

