Hi all,
I'm currently involved with a rather large registration application. The application is broken down into several steps, with each step being a new web page. Obviously, each new page is given all the previous information via HIDDEN fields. Each page does some validation checks....
This is where my "problem" comes into play. Once a page is submitted, the script validates the page. If the page is valid, it continues on to the next page. If it isn't valid, it redraws the current page with a list of errors printed to the top. I'm not sure the best way to go about this. Currently, I have one page that has a switch stucture, dependent on the value of the submit button.
It would seem at first glance that the form action of page1.php would be page2.php, and so on and so forth until the end of the process. the reason that won't work is if there are errors, it would then have to go BACKWARDS to redraw the previous page.
If this is confusing, i'm sorry.... now are there any ideas out there?