You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Codeigniter 3.x)
...this is because the Form Validation library runs prep functions (like trim(), strtolower() ... etc) on the $_POST array values.
Fix: Re-populate the $data array with the $_POST values after running form validation within MY_Model. This could be achieved by adding the following code to the MY_Model validate() method - after running form_validation->run() and before returning $data:
(Codeigniter 3.x)
...this is because the Form Validation library runs prep functions (like trim(), strtolower() ... etc) on the $_POST array values.
Fix: Re-populate the $data array with the $_POST values after running form validation within MY_Model. This could be achieved by adding the following code to the MY_Model validate() method - after running form_validation->run() and before returning $data:
The text was updated successfully, but these errors were encountered: