ci_bootstrap_3 icon indicating copy to clipboard operation
ci_bootstrap_3 copied to clipboard

Problem sending parameters via POST

Open vaibhavmalushte opened this issue 8 years ago • 2 comments

Hi,

We are facing problem accessing post parameters. When parameters are sent using HTTP method post, CI form validation library always returns false. Tried debugging post variables, it is always empty.

Please advise. Vaibhav

vaibhavmalushte avatar May 31 '16 11:05 vaibhavmalushte

got the same error while posting with ajax while trying to implement a popup, in base model the function render does something with posts...when i put an if empty post in the controller before validation i get my results...

Qnatz avatar May 31 '16 12:05 Qnatz

Hi all,

I also noticed there seems something wrong with form validation. After some checking it looks like the issue comes from MY_Form_validation (inside /application/core/ folder) class.

Please try either of the following methods:

  1. Remove *__construct() function * from MY_Form_validation.php
  2. Remove the whole MY_Form_validation.php file

Method 1 works for me (but not sure about the reason yet...), please see if this can help.

waifung0207 avatar Jun 09 '16 10:06 waifung0207