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/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: retain the values of a registration page after captcha mismatch (/showthread.php?tid=68219)



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()