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

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

WBOY
Release: 2016-06-06 20:21:09
Original
1318 people have browsed it

<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>
Copy after login
Copy after login

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>
Copy after login
Copy after login

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

PHP:$_FILES

Related labels:
php
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