Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/273.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
POST参数通过表单发送,但不存在于php脚本中_Php_Apache - Fatal编程技术网

POST参数通过表单发送,但不存在于php脚本中

POST参数通过表单发送,但不存在于php脚本中,php,apache,Php,Apache,我有一个奇怪的问题。我正在发送一个包含数百个字段的非常大的表单。基本上,我毫不怀疑表单本身没有错误,因为在firefox的控制台中,我可以在我的请求中看到POST数组存在: -----------------------------14624305211779581122436169227 Content-Disposition: form-data; name="BlocDocumentDocument[blocsTabulardocumentsTabularn0][n0][file]" 3

我有一个奇怪的问题。我正在发送一个包含数百个字段的非常大的表单。基本上,我毫不怀疑表单本身没有错误,因为在firefox的控制台中,我可以在我的请求中看到POST数组存在:

-----------------------------14624305211779581122436169227
Content-Disposition: form-data; name="BlocDocumentDocument[blocsTabulardocumentsTabularn0][n0][file]"

34495153-98c5-4200-8545-2bb71d279ecd
-----------------------------14624305211779581122436169227
Content-Disposition: form-data; name="BlocDocumentDocument[blocsTabulardocumentsTabularn0][n0][title]"

asdf
-----------------------------14624305211779581122436169227
Content-Disposition: form-data; name="BlocDocumentDocument[blocsTabulardocumentsTabularn0][n0][description]"


-----------------------------14624305211779581122436169227
Content-Disposition: form-data; name="BlocDocumentDocument[blocsTabulardocumentsTabularn0][n0][datetime]"

2014-09-19 00:00:00
-----------------------------14624305211779581122436169227
Content-Disposition: form-data; name="BlocDocumentDocument[blocsTabulardocumentsTabularn0][n0][rank]"

1
但是如果在php中,我在php的第一行中打印($\u POST['BlocDocumentDocument']['blocsTabulardocumentsTabularn0']),我会得到以下结果:

Array
(
    [n0] => Array
        (
            [file] => 34495153-98c5-4200-8545-2bb71d279ecd
        )

)

缺少字段。这个问题似乎只有在表单有大量字段的情况下才会出现(我有相同的表单,但字段较少(它们是由javascript生成的),并且可以正常工作)。我已经尝试增加php的post_max_大小,但没有成功。

我发现了问题。这是php的最大输入变量设置。5.3中的默认值为1000。

您应该在此处发布代码。很难从中看出什么。