How to show a preview / confirmation page before writing the form to the database |
[eluser]JeremyApp[/eluser]
Someone correct me if this is a bad way to do it, but I generally use flashdata for this purpose. Flashdata is a part of the CI session library that stores temporary variables, usually for the next request only (optionally the next two requests). I will usually write the inputted data to flashdata and then display it on the next page. Since it should be valid for another request, I can either choose to write it to the database or discard. http://ellislab.com/codeigniter/user-gui...sions.html - see "Flashdata" |
Welcome Guest, Not a member yet? Register Sign In |