Welcome Guest, Not a member yet? Register   Sign In
Questionaires - Session db
#3

[eluser]n0xie[/eluser]
Why not insert the data after each step. I assume you need to save the data somewhere? Just keep state (i.e. what step is the user currently on?) in your session and you wouldn't even need database sessions.

User enters the site, gets a session. User inserts user info, pushes next, data is inserted and returns an 'survey_id'. Add id to session, add 'step2' to the session. Repeat until finished. Once the whole survey is done, set a boolean (is_completed), so you can filter out half completed forms.


Messages In This Thread
Questionaires - Session db - by El Forum - 12-14-2010, 05:46 PM
Questionaires - Session db - by El Forum - 12-14-2010, 05:53 PM
Questionaires - Session db - by El Forum - 12-14-2010, 06:05 PM
Questionaires - Session db - by El Forum - 12-14-2010, 06:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB