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

[eluser]darkhouse[/eluser]
The way I've done this in the past is to process (validate) each step individually, and on success add the data to the session. For each field, use the form helper, like this:

Code:
<input type="text" name="first_name" value="<?php echo set_value('first_name', $this->session->userdata('first_name')); ?>" />

So if the page has been posted, but is missing some data or something, this function will display the data that was posted in the field, or if you're going back, it'll display the data from the session.


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