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? Quote Link to comment 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. Quote Link to comment 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> Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.