• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Re-populate forms after clicking away with $_SESSION data

#1
[eluser]Unknown[/eluser]
I have a chain of forms as part of one single process, separate views. Once you $_POST and leave the first view to go to the second view, if you want to let the user "go back" to the first view, there's no way to re-populate the data since the $_POST doesn't exist anymore.

Something like this...

Code:
Form1 -> Form2 -> Form3 -> ThankYouPage

$_SESSION seems like the best option to make this data available in a historical fashion, but my forms are built using the set_value() functions in CI, so I prefer to find a way to re-populate the forms based on data stored in $_SESSION if possible.

Everything's working with the re-population functions that use $_POST, but as soon as I move them along to the other part of the process, $_POST disappears (as I would expect). Doing this somehow with a session seems the only option I think...just not sure how, yet.

Thanks for replies. Been banging my head against the wall with this one :-)


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.