![]() |
Repopulating HTML form using DMZ extension htmlform - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Repopulating HTML form using DMZ extension htmlform (/showthread.php?tid=25645) |
Repopulating HTML form using DMZ extension htmlform - El Forum - 12-19-2009 [eluser]rum1man001[/eluser] Can any1 tell me how could I repopulate form when usin DMZ extension htmlform. Please explain Repopulating HTML form using DMZ extension htmlform - El Forum - 12-20-2009 [eluser]BrianDHall[/eluser] http://www.overzealous.com/dmz/pages/extensions/htmlform.html The provided example form templates are setup for this already, I believe. All you have to do is call render_form() on a populated item. For instance: Code: $user = new User(); Now if you want to repopulate a form that failed validation, it goes something like this: Code: // if create user form posted... |