Multiple problems with input file_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:19:37
Original
1229 people have browsed it




$_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. .


Reply to the discussion (solution)

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

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template