How does a normal programmer handle multi-page forms? Use a hidden "page" form element with the value being the page number. Then use switch on the page variable.
How does an "innovative" programmer handle the same problem? On each page, place a hidden form element named page1, page2, page3, etc. Then use if/else checking if the variable exists.