Forum Moderators: coopster
A little background:
I have a somewhat long php script (12 pages) that provides an optional login function; collects and validates the customer's information.
The first time it loads the button reads VALIDATE
When that is pushed it posts back to itself and performs the validation routine, then either highlights problem areas and keeps the VALIDATE button or changes it to CHECKOUT if successful.
In my initial testing program (watching my wife try and use it) I can see that this is going to be a point of major confusion.
Any tips would be appreciated!
Your suggestion worked great except for one issue I can't seem to think my way out of.
The new page (I now load by using header() right after dumping the output buffer) can't get all the $_POST variables from the page I just quit.
(collecting address, posts back to self for validation, NOW moves to checkout if everything is valid...but no <input type...> data comes with it).
I'm not sure where all that data is stored (or I might have an idea what to do to fix this)...should I continue with the output buffering to the end of the script, pull the contents of the buffer, do something with it, then kill the buffer and move to the new page?
I really appreciate your help. Really learned something unexpectedly usefull!