php Post limited to 1000 variables

后端 未结 4 776
我在风中等你
我在风中等你 2020-12-06 04:49

I\'ve got a large form and I can see from firebug that all of the elements\' values are being sent properly, but when I print_r($_POST) there are only 1000 variables display

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-06 05:19

    Ok. I've figured out a solution using jquery

    I did it like this

    $("#single-form").submit(function(event) {
        event.preventDefault();
        var table_data = $(this).serialize();
        console.log(table_data);
      // ajax call to handle the data
    }
    

    serialize function will give the URL encoded strings of all form data and in PHP file just use the function parse_str to parse the string into variables.

提交回复
热议问题