Home > Backend Development > PHP Problem > How to solve php post data loss problem

How to solve php post data loss problem

藏色散人
Release: 2023-03-09 06:40:01
Original
2842 people have browsed it

php post data loss solution: first find and open the php.ini configuration file; then modify the "max_input_vars" of php.ini; and finally restart PHP.

How to solve php post data loss problem

The operating environment of this article: windows7 system, PHP5.3 version, DELL G3 computer

Submit by POST method under php Parameter loss problem

In the apache php system, part of the data is not saved when submitting the form form post. When printing the data, it is found that some parameters are lost. From has about 90 lines and 11 inputs in each line.

At first I thought it was apache's restriction on the length of the post. After various modifications, I found that it had no effect. The server uses php5.3

The local one uses php5. 2 runs normally and saves the data completely. After switching to 5.3, data loss also occurs locally.

Found the max_input_vars parameter in php.ini of php5.3

Address http:// php.net/manual/zh/ini.core.php



##Modify php.ini The max_input_vars


# is modified and restarted, the data post is complete.

[Recommended learning:

PHP video tutorial]

The above is the detailed content of How to solve php post data loss problem. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template