need example form repopulation with session data - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: need example form repopulation with session data (/showthread.php?tid=15426) |
need example form repopulation with session data - El Forum - 02-04-2009 [eluser]moonbeetle[/eluser] (form validation library CI 1.7.0) Hi, I want to repopulate a form, using the Form Validation library, with session data (if the data exists). I was thinking about something like this: Code: if ($this->form_validation->run() == FALSE) Is there a method I can use to repopulate from fields? Something like: Code: $this->form_validation->fieldname = "some value"; (both don't work) need example form repopulation with session data - El Forum - 02-04-2009 [eluser]jozeunico[/eluser] Look at the form validation class for re-populating the form Code: <html> |