$_FILES["file"]["name"] This is how to get the first one
$_FILES["file"]["name"] How to get the second one and how to distinguish it. .
Dear, why are your IDs the same? First, the IDs cannot be the same
Secondly, you can also use class, so that the target of acquisition is clear.
It depends on how you use it. You can also get it based on the type first, and then use array traversal.
There are many methods
$_FILES["file"] ["name"] Is this file an ID? ? ? ?
The file name obtained is $_FILES["file1"]["name"] ? ? ? ?
In fact, you can also use document.getElementsByTagName("input")[0]//The first
document.getElementsByTagName("input")[1]//The second
is obtained like this
$_FILES["file1"]["name"]
The value obtained by document.getElementsByTagName is different