Thanks for the rapid response. Unfortunately, neither Snoopy (which I wish I'd heard of before I wrote my own redirect and POST code) nor your code seems to be able to do what I need, to display the results of a form POST in a new page, not just printing them on the current page.
The problem I need to solve is the following:
The user submits a form, a new page with "transferring now" pops up, and then a new page with the results pops up.
Basically, the web app I'm writing has to perform some operations on remote web pages and display the results, and my client wants it to be clear to the user that when the form takes five seconds to submit, it's because the remote host (frequently a site overseas) is slow, and not because our site is slow. The only solution I can think of is putting up a "transferring now" window until we've got the data from the remote host.
I can't just display the "transferring now" page and then display the results from the form, because I don't have a way to clear "transferring now" from the top of the page.
I have been looking into using JavaScript/DHTML with some hidden divs to make the "transferring now" text disappear and the results appear, but I can't come up with a way to make the different DIVs appear and disappear with appropriate timing (none of the page displays at all until the whole thing has loaded in IE at least, so by that time we should just be displaying the results).
The simplest solution, superficially at least, is coming up with a way to make PHP do the exact same thing a web browser does when it submits to a form: post and redirect at the same time.
Any solutions or workarounds would, as I've said before, be highly appreciated. At this point I'm prepared to tell the client that it can't be done.
Thanks again for your rapid response.
-taavo