display old value in form - 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: display old value in form (/showthread.php?tid=75737) |
display old value in form - muuucho - 03-11-2020 I follow the Blog example from the docs and I'd like to have my form display old value when validation fails. Controller: Code: public function create() PHP Code: <h2><?= esc($title); ?></h2> RE: display old value in form - InsiteFX - 03-11-2020 I' am taking this off the top of my head the way the forms are done in Myth/Auth. I do recommend that you download it and view the controller and views with forms. PHP Code: $rules = [ Give that a try, I did not have time to test it but like I said Myth/Auth is a great learning module. RE: display old value in form - muuucho - 09-29-2020 Thanks, that works |