我有一个自定义的内容管理系统(CMS) ,它可以在我的开发框(Ubuntu/PHP5 +/MySQL5 +)上完美工作。
I just moved it up to the production box for my client and now all form submissions are showing up as empty $_POST arrays.
I found a trick to verify the data is actually being passed using file_get_contents('php://input');
and the data is showing up fine there -- the $_POST
/$_REQUEST
arrays are always empty.
我还通过 firebug (application/x-www-form-urlencoded; charset=utf-8
)验证了内容类型标题的正确性。
无论表单是通过 AJAX 提交,还是通过普通表单提交,这个问题都会发生。
非常感谢您的帮助!