How do I replace browser history using Header()?
| From: | Neil Freeman | Date: | Sat, 14 Jun 2003 14:13:28 +0000 |
| Subject: | How do I replace browser history using Header()? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-151478@lists.php.net to get a copy of this message | ||
Hi,
I am using Header("Location:http://www.mysite.com/mypage.php"); to do a browser redirect. This works fine. The problem though is that doing this adds a page to the browser's window.self.history() collection.
Is there any way that I can do a PHP Header() statement that does the equivalent of JavaScript's window.self.location.replace("http://www.mysite.com/mypage.php")?
In other words I would like to use PHP's Header statement to replace the current page in the brower's history, not just add another location onto the collection.
Any help much appreciated.
Neil
--
----------------------
www.curvedvision.com
----------------------