CodeIgniter Forums
Smart way to keep input data after form success - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Smart way to keep input data after form success (/showthread.php?tid=84700)



Smart way to keep input data after form success - อมรรันต์ จากผา - 11-01-2022

Hi all,
I'm looking for the smartest way to repopulate a form after a success submit. My use-case is a search form, for which the more convenient for users is to have their last search param kept in the input fields.

Of course I can do it by myself passing the value to the view, but I was wondering if there is something like the set_value() function that I can use in my case.

Thanks in advance,
ponsfrilus

jili slot ทางเข้า