xProteuSx Posted November 24, 2007 Share Posted November 24, 2007 Is there a PHP snippet that will take a user back one page in browser history, or is everyone still using the JavaScript equivalent? Link to comment https://forums.phpfreaks.com/topic/78636-solved-back-a-page-in-browser-history/ Share on other sites More sharing options...
trq Posted November 24, 2007 Share Posted November 24, 2007 PHP is server side, there is no way for it to interact with a browsers history. Link to comment https://forums.phpfreaks.com/topic/78636-solved-back-a-page-in-browser-history/#findComment-397909 Share on other sites More sharing options...
phpQuestioner Posted November 24, 2007 Share Posted November 24, 2007 you can create a link in your page and use HTTP_REFERER. Like So: <a href="<?php echo $_SERVER['HTTP_REFERER']; ?>">Back To Previous Page</a> Link to comment https://forums.phpfreaks.com/topic/78636-solved-back-a-page-in-browser-history/#findComment-397915 Share on other sites More sharing options...
xProteuSx Posted November 24, 2007 Author Share Posted November 24, 2007 Man I love the help I get here. I learn as much from this Forum as I do from all my other sources combined. Thanks guys. Link to comment https://forums.phpfreaks.com/topic/78636-solved-back-a-page-in-browser-history/#findComment-397916 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.