I have a multi-part form that consists of 3 pages(forms) which each save data to the session. When the final form is complete, I insert the session variables to the DB via a FINISH button.
I now want to take another step. Page 2 of this multi-part form allows users to add "items". Presently, they can add only 1 item, and move the page 3 by hitting a next button. I would like to add a "Add another item" button that goes to the page 2 form again, allowing more items to be entered. I believe I need an array/table to do this, but don't know how I might do this in the session.
Is it possible to create an array in the session? If so, how? If not, how might I approach this?
I am trying to avoid inserting to the database (a remote db) until after a "preview" page following the form.
Any ideas? Thx in advance.
I now want to take another step. Page 2 of this multi-part form allows users to add "items". Presently, they can add only 1 item, and move the page 3 by hitting a next button. I would like to add a "Add another item" button that goes to the page 2 form again, allowing more items to be entered. I believe I need an array/table to do this, but don't know how I might do this in the session.
Is it possible to create an array in the session? If so, how? If not, how might I approach this?
I am trying to avoid inserting to the database (a remote db) until after a "preview" page following the form.
Any ideas? Thx in advance.