Topic: The best way of storing data without submit to db

Hi all,

This is just a query about what is the best way to store data temporary without submitting it to a db. The reason for this it because i have create app that take input data via a form and after i would like to preview the data entered before putting it into the db. The only idea i have had so far is the form gets submitted to db but has a boolean value field that is set to false meaning it will not show up till the process sets it to true then it will show up .

i.e form -------------------- preview ----------------------- payment
    (Submitted But false)  (View from db still false)       (If ok set to true else delete from db)


As anyone got any other suggestions on how this could be done.


Thanks

Last edited by paulie (2012-04-20 10:27:24)

Re: The best way of storing data without submit to db

Have You considered storing form parameters in the session variable? First submit creates session variable and after confirmation submit form is saved to db.