php - Wamp 服务器未获取所有发布数据

标签 php windows codeigniter wamp

<分区>

我创建了一个大表单,用户可以在其中为基于角色的系统的不同用户组设置权限。

它在一列中列出系统中所有可用的模块

接下来的 6 列显示不同的权限复选框('View'、'ADD'、'EDIT'、'Retore'...)

所以它变成了一个非常大的表格。

如果我选中所有复选框并提交,则不会将所有数据发送到服务器。所以在数据库中它没有保存 (它在其他使用通用数据库的 ubuntu 电脑上工作正常)。

如果我取消选中上面的行并选择下面的一行,它也会被选中并保存到数据库中。

我尝试谷歌搜索但没有成功

我在 php.ini 中将 post_max_size 增加到 2000M

有些帖子说增加 memory_limit 在 php.ini 中更改为 2000M

还检查了表单标签周围标签的不正确开始和结束。

var_dump($_POST);还显示截断的数据。 :'(

system configuration is window 8.1 pro,

wamp server 2.2 64bit,

php 5.3.13

apache 2.2.22

php Application in Codeigniter 2.1

最佳答案

听起来您正在达到输入变量的限制 (max_input_vars)。您需要增加该值以适合您的应用程序。我相信它默认为 1000,你已经超过了它 (9*153+4)

How many input variables may be accepted (limit is applied to $_GET, $_POST and $_COOKIE superglobal separately). Use of this directive mitigates the possibility of denial of service attacks which use hash collisions. If there are more input variables than specified by this directive, an E_WARNING is issued, and further input variables are truncated from the request.

了解它 here .

关于php - Wamp 服务器未获取所有发布数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21926984/

相关文章:

windows - Git diff 显示没有变化的文件

c - Windows 上是否有被视为行业标准的 C 编译器或 IDE?

PHP - 在循环内将项目添加到数组

php - 列出mysql数据库中的表

php - php 中 get_results 的可能解决方法是什么

php - 我怎样才能访问这样的 php 数组

php - 如何使用 for 循环和 union all 按列进行分组

windows - 在过滤器 Parsed_concat_0 上找不到未标记输入垫 1 的匹配流

codeigniter - 在查找表中插入关系数据

php - 使用子查询和Having优化SQL