Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

multi-page form using session vars, need array?

Status
Not open for further replies.

itbnorris

MIS
May 12, 2003
45
US
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top