CodeIgniter Forums
retain the values of a registration page after captcha mismatch - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forum-30.html)
+--- Thread: retain the values of a registration page after captcha mismatch (/thread-68219.html)



retain the values of a registration page after captcha mismatch - [email protected] - 06-11-2017

After captcha mismatch, how to fill/retain the values of a registration page?
Controller code is
Code:
if (!$captcha_text_matched) {
               $this->session->set_flashdata(
                       'register_message', 'The entered text is not matched.'
               );
               redirect(base_url('user/register'));
           }



RE: retain the values of a registration page after captcha mismatch - kilishan - 06-12-2017

redirect_with_input()