• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Building a Survey - where to hold/store temporary input data?

#1
[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

#2
[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.

#3
[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.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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