What function or process would one use to make a form that's dynamic and multi-step.
For instance, a user enters their first name, last name, and then are asked how many candy bars do they want.
They hit "Next" (a submit button) and the form will list X amount of fields for the user to enter a candy bar name depending on how many candy bars they selected in the previous step.
Just an example of what I'm trying to get at, all this infomation must be stored somehwere. Would you post the information to a completely new script or post to itself? You wouldn't use cookies because that's only limited to 20 cookies per domain.
I suppose you could store the information temporarily in a file, have the script recall it, and then remove it when it's done; but there has to be an easier way to do a multi-part/multi-step (step 1 out of 4 or whatever) form...
Any ideas? Can someone lead me in the right direction here? Thanks.