Repopulate form using set_value(?) while not using form_validator |
[eluser]Unknown[/eluser]
Hi My application flow is like this: A form -> Validator (Form_Validator which makes me choose to use set_value() in the form for repopulating) -> A control page where the user can see if he/she finally has put in correct values. If the person wants to change something, the user is directed to the form again along with post data. I therefore do somethink like $this->load->view('myform', $_POST), but since I already use set_value() (and not variable-names which corresponds to the POST-keys) my form don't get repopulated. Well, I hope you understood my little problem. Has someone got a solution?
[eluser]steelaz[/eluser]
set_value() is actually part of Form Helper (http://ellislab.com/codeigniter/user-gui...elper.html), you can load it like this: Code: $this->load->helper('form'); and if data is still in $_POST array, set_value() should work for you. |
Welcome Guest, Not a member yet? Register Sign In |