Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个表单,其中有超过 350 个 name="somename" 附加到 HTML 输入元素。当我运行 var_dump($_POST) 时,只有 150 个出现,这是怎么回事?
确保在 html 中,您正在使用
<input name="name[]" value=""/>
代替
<input name="name" value=""/>
如果名称属性中没有括号,php 将用每个新名称字段覆盖 $_POST['name']。