Home >Backend Development >PHP Tutorial >我表单上传的时候设置了multiple属性,请问接受端的PHP怎么写

我表单上传的时候设置了multiple属性,请问接受端的PHP怎么写

WBOY
WBOYOriginal
2016-06-06 20:21:091315browse

<code>


    <meta charset="UTF-8">
    <title>Document</title>


<form method="post" enctype="multipart/form-data" action="test.php">
    <input type="file" name="daan" multiple>
    <input type="submit">
</form>

</code>

html表单写法如上
我php那里该怎么写才能接收多个文件

回复内容:

<code>


    <meta charset="UTF-8">
    <title>Document</title>


<form method="post" enctype="multipart/form-data" action="test.php">
    <input type="file" name="daan" multiple>
    <input type="submit">
</form>

</code>

html表单写法如上
我php那里该怎么写才能接收多个文件

PHP:$_FILES

Statement:
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