![]() |
Building a Survey - where to hold/store temporary input data? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Building a Survey - where to hold/store temporary input data? (/showthread.php?tid=27639) |
Building a Survey - where to hold/store temporary input data? - El Forum - 02-16-2010 [eluser]helphelp[/eluser] Hi, i am building a 40-70 questions survey. How should i store the user input? i want to do it in a way that if they are at question 10. They have the ability to go back to question 2 and modify the answer. Once they finish and submit the survey, all the user input will be deleted. I have read the session user guide but it said it only can hold 4k?? Please light me up. Thank You Building a Survey - where to hold/store temporary input data? - El Forum - 02-16-2010 [eluser]jbreitweiser[/eluser] 4k is a lot of space for answers to questions. Store answers in an array $data[70] = 'A'; You could also use a database to store the sessions in and then you have more space then 4K. Or use PHP session instead of the codeignitor. Building a Survey - where to hold/store temporary input data? - El Forum - 02-16-2010 [eluser]mikelbring[/eluser] You could just not use a session, but use a database table to store each answer but don't set it as finished (ex..finished=0). Then use a session to store a key that is attached to the question rows for that user. |