Re: Refreshing pages after HTTP redirects

From: Date: Fri, 07 Mar 2003 16:45:03 +0000
Subject: Re: Refreshing pages after HTTP redirects
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-94901@lists.php.net to get a copy of this message
Hello, please forward user questions to the php-general@lists.php.net mailinglist, this list is for development _OF_ PHP, not development _with_ PHP. Derick On Fri, 7 Mar 2003, Daniel Joyce wrote: > Well, I've gone on to the next step of my project. > > I've finally moved to a more structured development approach, treating > web pages as forms as having them call a central cgi script that > dispatchs calls to other scripts, and then redirects the client to the > next step.... Basically, a mini servlet idea. > > So, in my pages, the forms call a central script, say 'foo.php'. > > foo.php redirects the client to a webpage that shows a "Please wait, > processing your request' page, using http header rediracts. > > When processing completes, foo.php sends another http redirect header to > the client to redirect it to the next step. The problem is the following... > > Say the client is on a.php, which renders a form that calls foo.php when > submitted. After processing, foo.php redirects the client back to a.php. > > ( a.php has a search form, and displays query results from the DB ). > > The problem is that a.php is not refreshed, it shows the last value. > I've tried various http caching headers, and other items, and I can't > seem to force a refresh when redirecting back to a.php. > > Is there a header that says "Go to a, but refresh it too."? > > -Daniel > > > -- Stop mad cowboy disease! ------------------------------------------------------------------------- Derick Rethans http://derickrethans.nl/ PHP Magazine - PHP Magazine for Professionals http://php-mag.net/ -------------------------------------------------------------------------

« previous php.dev (#94901) next »