RE: [PHP] PHP Page Refresh on Redirection
| From: | John W. Holmes | Date: | Tue, 28 Jan 2003 05:49:27 +0000 |
| Subject: | RE: [PHP] PHP Page Refresh on Redirection | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-133346@lists.php.net to get a copy of this message | ||
> I have a PHP page with a form that submits to another PHP processing
page.
> On completion of the PHP actions on the processing page, I have echoed
> into
> the page the javascript action of 'location.href=...' and the location
is
> redirected to the PHP form page that starting the process. Both pages
take
> data from an SQL server. The problem I'm having is that the the
javascript
> always grabs the cached page. I need a newly refreshed page to return
with
> updated data from the SQL server. Any suggestions?
You may be able to use the header() function to send headers telling the
browser not to cache the page. Take a look at the header() manual page
and there is an example (6th gray box).
www.php.net/header
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/