compact all form-data with javascript

前端 未结 4 1453
灰色年华
灰色年华 2021-01-28 19:22

I would like to compact all data from a huge HTML-form with over a 1000 variables to circumvent the max_input_vars limit in PHP versions before 5.3.9.

How can I read all

4条回答
  •  旧巷少年郎
    2021-01-28 19:37

    I created a script that does the job on all post forms automatically:

    
    
    

    On the receiving side you cannot use the PHP parse_str() function because the max_input_vars directive affects this function too, so you need something else: I took my_parse_str() from https://gist.github.com/rubo77/6821632

    ";
        var_export($params);
    ?>
    

    Example script on https://gist.github.com/rubo77/6815945

提交回复
热议问题