mr_burns wrote:
Is it possible to get the previous url. For example, if I am on page -
page01.php - and I then click to - page02.php - from page02.php, can I
use script to determine that I have come from page01.php? It doesnt
have to be the entire url, even just the file name. Cheers
The only reliable way you can get it is to pass it as a parameter to the
page eg your link would be page02.php?referer=page01.php, or use some
form of non-cookie sessions (which also require a parameter to be
passed in the url eg page02.php?sessid=123) and track it in a database.
You can use $_SERVER['referer_url'] but this is not always set; some
users have browser preferences or other software which prevents the
referal informtion being passed to the server for privacy/security
reasons.
--
Chris Hope - The Electric Toolbox -
http://www.electrictoolbox.com/