Codeigniter $this->input->post() empty while $_POST is working correctly

前端 未结 13 1360
我在风中等你
我在风中等你 2020-12-05 14:56

On a codeigniter installation, I am trying to use the inbuilt $this->input->post(\'some_data\') function, however $this->input->post()

13条回答
  •  感动是毒
    2020-12-05 15:17

    There's a few things you can look for help solve this.

    1. Has anything changed or been extended in the core CodeIgniter files. Check that system/core/Input.php is an original copy and the contents of application/library and application/core for additional files

    2. Do the other input methods work? What is the result of this when run beside your print_r call?

      echo $this->input->user_agent();

    3. What data is output from print_r? Look in application/config/config.php for the line $config['global_xss_filtering']. Is this set to TRUE or FALSE? If TRUE maybe the cross site scripting filter has a problem with the data you're posting (this is unlikely I think)

提交回复
热议问题