I think what I'm struggling with is the basic design philosophy. From the simple examples I've looked at, it seems I should build a single page with several functions.
The first function would run writing the first form. A second function would run if a hidden form input in the first form is found in $_POST, checking the inputs of the first form.
Somehow, a third function would re-write a second for, a forth function would check that, and so on until the end where the last function would use the form inputs to build a 'review' page where the user could either go back for corrections or upload the form into a database where it would feed a page.
Is this correct? I've experimented using variables to keep track of what functions has run, but I must misunderstand php variables because it wasn't working...
I'm also missing a number of other design techniques that are hard to figure out by reading php documentation but if I understand the basic mechanisms I could mush more easily know what to look for.
I've only found one good example on onlamp.com It confuses me though. I tryed the code copy / past but I think my local server must have different setting or the code is not complete because it doesn't work like it does on their page.
With sessions would I use multiple pages maintaining inputs within the session?