Forum Moderators: open
However, you could 'break the back button' (a common, and often undesirable, fault of some AJAX apps). New content is dynamically loaded into the page (your PHP page for instance). It can look like an entirely new page to your user but no entry appears in the browser history - the back button is 'broken'. The back button is obviously still available but the user can't get back to the 'page' they were just on (at least the page they thought they were on).
Alternate for above: is there any way to get the from page name when some one click the back button in IE?
You can usually get the 'referer' (the page from which the user has come from - having possibly followed a link) when a user lands on a page:
JavaScript -
document.referrer
$_SERVER['HTTP_REFERER']
However, when the user hits the back button I'm pretty sure the page is simply pulled from the cache, including the referer. So the referer does not show the page you have just moved back from, but the page the user came from in order to get to that page in the beginning (that is of course if it set at all). At least that seems to be the case when I've tried this from JS - it shouldn't (probably doesn't) cause a request back to the server?
May be you can track the last few pages your user visits in a cookie (breadcrumb) or something and constantly check the last visited page, on every page?!
IMHO there is no (easy) solution to this.