Re: PHP post data
| From: | Chris Shiflett | Date: | Thu, 06 Apr 2006 13:42:39 +0000 |
| Subject: | Re: PHP post data | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-233353@lists.php.net to get a copy of this message | ||
John Taylor-Johnston wrote:
Scrolling back and forward through my PHP generated search engine, my browser (FF) alerts to remind me that I have post data. What kind of header can I add to avoid it doing that?I have a pretty detailed article about this on my web site: http://shiflett.org/articles/guru-speak-nov2004 In your case, you want to use what some people call the PRG pattern (POST, Redirect, GET). The redirect you want is a 3xx response, because those are excluded from the history mechanism, and PHP handles this for you when you add a Location header to a response. Chris