Welcome Guest, Not a member yet? Register   Sign In
Multipage form submissions to a database Please Help!!
#1

[eluser]Unknown[/eluser]
Hello all,
I'm still fresh to CI and I'm having trouble getting my code to do what I feel should be a fairly simple task.
I'm under a deadline and just can't get this one part nailed down. Here is what i'm trying to do.

1. User hits index controller and in the viewer is a single form asking for their name and a start button.
2. User enters name and hits the start button. Name is posted to a row in the DB and returns the ID and name for later use then
refreshes to the second viewer.
3. Second viewer asks another question and enters this data into another column in the ID assigned on page 1. this same process continues for 8 more questions.

basically saving the questionnaire step by step to the database. I'm just can't get my head around creating a new record to the database, returning an ID and updating that ID's record across several viewers/pages/steps which ever would work best.

Any help is VERY appreciated.

Thanks,
Taylor




Theme © iAndrew 2016 - Forum software by © MyBB