Home >Backend Development >PHP Tutorial > 没法计算上传文件的个数

没法计算上传文件的个数

WBOY
WBOYOriginal
2016-06-13 12:36:15823browse

无法计算上传文件的个数
刚才复制了一段增加文本框节点的JAVASCRIPT
但是现在外观上一按“再添加一张”,会添加一个新的节点
我在提交后的代码加了 echo 'count(($_FILES['img']['name']))';

添加了两个文件,打印出来1,怎么没计算出来?

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
Previous article: [php]应用控制器(2) Next article: 问下有关问题