Welcome Guest, Not a member yet? Register   Sign In
multi page forms and genral form question
#5

[eluser]darkhouse[/eluser]
In that case I would send the session data to the view from the controller, like this:

Code:
$data = array('formdata' => $this->session->userdata('formdata'));
$this->load->view('myform', $data);

And then in the view, the input would be this:

Code:
<input type="text" name="first_name" value="<?php echo set_value('first_name', $formdata['first_name']); ?>" />

That way you don't need to modify the session class.


Messages In This Thread
multi page forms and genral form question - by El Forum - 10-10-2009, 07:30 AM
multi page forms and genral form question - by El Forum - 10-10-2009, 09:25 AM
multi page forms and genral form question - by El Forum - 10-10-2009, 09:50 AM
multi page forms and genral form question - by El Forum - 10-10-2009, 09:54 AM
multi page forms and genral form question - by El Forum - 10-10-2009, 09:55 AM
multi page forms and genral form question - by El Forum - 10-10-2009, 11:03 AM
multi page forms and genral form question - by El Forum - 10-10-2009, 11:09 AM
multi page forms and genral form question - by El Forum - 10-10-2009, 11:14 AM
multi page forms and genral form question - by El Forum - 10-11-2009, 02:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB