[SOLVED] Form validation in 3.1.7 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: Issues (https://forum.codeigniter.com/forumdisplay.php?fid=19) +--- Thread: [SOLVED] Form validation in 3.1.7 (/showthread.php?tid=69878) |
[SOLVED] Form validation in 3.1.7 - Wouter60 - 01-25-2018 The validation rule valid_email in CI's 3.1.7 form validation, doesn't work anymore. PHP Code: $this->form_validation->set_rules('email','E-mailadres','trim|required|valid_email|callback_email_check'); In 3.1.6 there's no problem. In 3.1.7 I get the error "The field E-mail must contain a valid email address". I'm using this rule in my sign-up form. In the callback function I check if the email address already exists in the user table, or if there's a former sign-up request for the same e-mail address. RE: Form validation in 3.1.7 - pbarney - 01-25-2018 Do you know if the validation error is being produced by the "valid_email" check or by the "callback_email_check?" Narrow that down first. If it's the callback, can you post its code? RE: Form validation in 3.1.7 - Wouter60 - 01-26-2018 The error message came from CI's valid_email rule, not from my callback. But today, the issue miraculously disappeared! Yesterday, I did a roll-back to 3.1.6 (I still had that folder on the server: system_316). On my local host, I couldn't reproduce the error on 3.1.7. So I renamed system back to system_316, and system_317 to system. I tried again, and now it's working. |