Form validation returning FALSE |
10-14-2017, 12:05 PM
(This post was last modified: 10-14-2017, 12:45 PM by dwlamb. Edit Reason: Additional methods tried. )
I am undertaking a migration of a project from CI 2.2.x to 3.1.6 and am stuck on validation of an e-mail address on a password reset form.
Below is my code. This works perfectly in 2.2.x but validation returns false in 3.1.6: PHP Code: if (isset($_POST['email']) && !empty($_POST['email'])) { The problem seems to lie in the new methods for validation core/Form_validation.php public function run() line 422: PHP Code: public function run($group = '') The $validation_array is set set correctly from the $_POST data but the _field_data array is empty. I have tried setting rules using the array method and the cascade method as outlined in the Form Validation docs for 3.1.6 and they are not being set under core/Form_validation.php public function set_rules. CI sees no POST data $this->validation_data as empty. PHP Code: public function set_rules($field, $label = '', $rules = array(), $errors = array()) Is there something I am missing? Thanks for taking the time to read this. |
Messages In This Thread |
Form validation returning FALSE - by dwlamb - 10-14-2017, 12:05 PM
RE: Form validation returning FALSE - by dave friend - 10-14-2017, 01:59 PM
RE: Form validation returning FALSE - by PaulD - 10-15-2017, 04:58 AM
RE: Form validation returning FALSE - by dwlamb - 10-15-2017, 10:23 AM
RE: Form validation returning FALSE - by dave friend - 10-15-2017, 11:46 AM
RE: Form validation returning FALSE - by dwlamb - 10-15-2017, 01:06 PM
RE: Form validation returning FALSE - by dave friend - 10-15-2017, 06:01 PM
RE: Form validation returning FALSE - by dwlamb - 10-15-2017, 06:45 PM
RE: Form validation returning FALSE - by dave friend - 10-16-2017, 08:21 AM
RE: Form validation returning FALSE - by gmgj - 04-17-2019, 11:38 AM
RE: Form validation returning FALSE - by gmgj - 04-30-2019, 03:48 PM
RE: Form validation returning FALSE - by dave friend - 05-01-2019, 09:56 AM
|