Forum Moderators: coopster
I know osCommerce has a breadcrumb implemented like this - you might want to look at the code for ideas.
Of course, a simple javascript redirect like history.go(-1) would work in a javascript-enabled browser.
[edited by: FalseDawn at 5:57 pm (utc) on Aug. 1, 2006]
<?php
session_start();
$_SESSION['url'] = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME'];// Rest of the PHP code goes here
<?php
session_start();// PHP code goes here
// Now here is the 'Continue Shopping' linkecho '<a href="'.$_SESSION['url'].'">Continue Shopping</a>';
[edited by: FiRe at 10:07 am (utc) on Aug. 2, 2006]
i tried the code FiRe mentioned, but when i click, it ask me search again. Say if i click "Add to cart" on this page:
"http://localhost/search.php?page=4&searchterm=book"
the actual link of "continue shopping" will turn out to be
"localhost/search.php"
looks like it's very difficult to back a specific page!