Here is a trick that I use when writing ASP pages, and it should work with PHP as well (I'm also new to PHP...).
In situations like this where you get input from page 1, then based on that input maybe you want to go to page 2 or page 3, I use an intermediate page. This intermediate page has...