php $_POST array empty upon form submission

前端 未结 27 3131

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 09:58

    I know this is old, but wanted to share my solution.

    In my case the issue was in my .htaccess as I added variables to raise my PHP's max upload limit. My code was like this:

    php_value post_max_size 50MB
    php_value upload_max_filesize 50MB
    

    Later I notice that the values should like xxM not xxMB and when I changed it to:

    php_value post_max_size 50M
    php_value upload_max_filesize 50M
    

    now my $_POST returned the data as normal before. Hope this helps someone in the future.

提交回复
热议问题