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 t
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
_REQUEST['photo'] or _POST['photo'] doesnt work
only _FILES['photo'] wor
hi i need to do a foreach on post files array ie
_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 :|
--
3 matches
Mail list logo