Hello there, I want to create back link and next link on my pages so that visitors can go back to the previously visited pages, how do i get the URL of these previous pages, or how do i go about it. regards
Please elaborate. It depends on how your pages are setup. If your URLs are setup like this: http://yourwebsite.com/?page=1 ... ?page=2... ?page=3.. etc Code (markup): Then the easiest way are simple increment/decrement and ifs statements - the "Next" link will contain $current+1 and the "Prev" link will contain the opposite, $current-1
thank you everyone, i have gotten a simple solution to it. this is the solution <a href="javascript: history.go(-1)">Back to Previous Page</a> <a href="javascript: history.go(+1)">Back to Next Page</a>