php $_POST array empty upon form submission

前端 未结 27 2734

I have a custom CMS i\'ve built that works perfectly on my dev box (Ubuntu/PHP5+/MySQL5+).

I just moved it up to the production box for my client and now all form su

27条回答
  •  死守一世寂寞
    2020-11-22 10:10

    I just spent hours to fix a similar issue. The problem in my case, was the the

    max_input_vars = "1000"
    

    by default, in the php.ini. I had a really huge form without uploads. php.ini is set to upload_max_filesize = "100M" and post_max_size = "108M" and it was surely not the issue in my case. PHP behavior is the same for max_input_vars when it exceeds 1000 variables in the form. It returns and empty _POST array. I wish I could have found that one hours, and hours ago.

提交回复
热议问题