Re: [PHP] post files array and registered globals off

2002-11-19 Thread Marek Kilimajer
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

Re: [PHP] post files array and registered globals off

2002-11-18 Thread Marek Kilimajer
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

[PHP] post files array and registered globals off

2002-11-17 Thread electroteque
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