【phpStudy】 phpfind 提交表单后获取数据丢失问题。
Jun 23, 2016 pm 02:01 PM
phpStudy
<?phpprint_r($_POST['checked'])?><form action="" method="post"><?phpfor ($i=1;$i<1000;$i++){print_r('<input type="checkbox" name="checked[]" value="'.$i.'" checked="checked"/>');print_r('<input type="hidden" name="checked2[]" value="'.$i.'" checked="checked"/>');}?><input type="submit" value="提交"/></form>
在我本机 print_r($_POST['checked']) 打印显示500个数组。(win7配置的nginx)
在服务器上测试 显示 1000条 (测试地址 http://www.sijunzijiu.com/test.php)
代码下载 http://pan.baidu.com/s/1gVISu
------------------------
我是【phpStudy】爱好者
从phpStudy2010 到 phpfind 都很上手。
界面简单明了。
回复讨论(解决方案)
web-飞翔-福建(842062626) 9:08:42
nginx1没搭好
也查看了 配置文件 下边两个值都挺大的
nginx.conf
client_max_body_size 100m
php.ini
post_max_size = 20m
检查 php.ini 中 max_input_vars 的值
自 php 5.3.9 起,增加了 max_input_vars 变量,默认值是 1000
用于限定表单元素的个数
检查 php.ini 中 max_input_vars 的值
自 php 5.3.9 起,增加了 max_input_vars 变量,默认值是 1000
用于限定表单元素的个数
多谢 问题解决。

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

11 Best PHP URL Shortener Scripts (Free and Premium)

Working with Flash Session Data in Laravel

Build a React App With a Laravel Back End: Part 2, React

Simplified HTTP Response Mocking in Laravel Tests

cURL in PHP: How to Use the PHP cURL Extension in REST APIs

12 Best PHP Chat Scripts on CodeCanyon

Announcement of 2025 PHP Situation Survey
