PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
line in my code returns 5 eventhough I have six or more input fields in the form.
If i select five images and hit submit, then the code returns me the image names of selected five images. But it doesn't return any thing if I select more than five files.
Can any one help me to solve this issue? Thank-you in advance
count($_FILES['file']) will always return 5, since those are the 5 keys in the array - name, type, tmp_name, size and error. So you should count($_FILES['file']['name'])