Hi yall,
I have been trying to figure the best way to check if my $_FILES array contains, well... files.
This does the job, but is there anything simpler or more articulate? I couldn't get any loving from isset or empty, which I thought was odd, as although the array is 'set' when no files are uploaded I doesn't contain any data ('empty' as it were). my_field is an array in itself so its a multi-dimensional type affair.Code:if($_FILES['my_field']['name'][0] != ""){
Thanks for looking, any savvy ways of rocking the validation would be appreciated!
porle.





Bookmarks