Hey guys,
I suppose i have a rather simple question, but i am not able to answer it myself, yet. This is the scenario:
You collect user input within a form. The page/script the form is directed at (the form's action) should not process the input, but store it for the next script to process. So there is one script and html page between collecting and processing the data. What is the better way to störe the input. Should i write it to the Session or store it in hidden input field on the html page in between or is there a better way i did not even see yet?
Thanks for your replies!
Tim
Page 1 of 1
Session or hidden fields?
#4
Posted 11 June 2012 - 05:46 AM
creating hidden fields will make ur forms cumbersome while session will not only keep data to the next process but also maintain data for as long as you need it.
#5
Posted 11 June 2012 - 08:46 AM
Use statefulForm:
http://www.yiiframew...efulForm-detail
This will allow you to post page1 data to page2 data and is handled by Yii itself.
http://www.yiiframew...efulForm-detail
This will allow you to post page1 data to page2 data and is handled by Yii itself.
#7
Posted 11 June 2012 - 05:47 PM
You could also use local storage. 
<edit>
But statefulForm is great!
<edit>
But statefulForm is great!
"Less noise - more signal"
Share this topic:
Page 1 of 1

Help














