php - PHP 多文本框数组 POST
问题描述
<form method="post">
<?php
for($i = 1; $i <= 1000; $i++)
{
for($j = 1; $j <= 100; $j++)
{
echo "<input type=\"text\" name=\"text" . $j . "[]\" value=\"" . ($i * $j) . "\" />";
}
}
?>
<input type="submit" />
</form>
为什么发布 1000 行时只输出 10 行?已经在 php.ini 中设置了所有变量,例如 input_max_var、max_execution_time、max_post_limit 等...
输出
Array
(
[text1] => Array
(
[0] => 1
[1] => 2
[2] => 3
[3] => 4
[4] => 5
[5] => 6
[6] => 7
[7] => 8
[8] => 9
[9] => 10
)
[text2] => Array
(
[0] => 2
[1] => 4
[2] => 6
[3] => 8
[4] => 10
[5] => 12
[6] => 14
[7] => 16
[8] => 18
[9] => 20
)
.
.
.
[text100] => Array
(
[0] => 100
[1] => 200
[2] => 300
[3] => 400
[4] => 500
[5] => 600
[6] => 700
[7] => 800
[8] => 900
[9] => 1000
)
)
memory_limit = -1
post_max_size = 1G
max_execution_time = -1
max_input_time = -1
max_input_vars = -1
suhosin.post.max_vars = -1
suhosin.request.max_vars = -1
解决方案
推荐阅读
- java - 将多个任务列表的结果投射到 Tasks.whenAllSuccess() (Firestore) 中的 POJO
- python - 将具有本地时区的日期时间字符串转换为 ISO 8601
- node.js - 无法按日期从 Google Cloud Pub/Sub 功能中的 Firebase 获取文档
- c++ - 为什么被认为是未定义行为的最有用的重新解释强制转换行为用例之一是什么?
- git - 如何从分支 B 合并到 A 时从分支 A 获取最新提交?
- php - 聚合多维数组 PHP 中的值
- amazon-web-services - 如何编写模式(regex_pattern)以从雪花复制模式中的 S3 前缀中选择 5 天的数据
- css - 如何使用 CSS 变换:scale(); 让子 div 响应地适应父 div 反应?
- powerbi - 想要将另一个表中的许多列带到具有匹配值列的表中
- python - 有没有相当于 tidyr 的不计其数的熊猫?