i neeed to know >_>
If you want the previous url try
$_SERVER['HTTP_REFERER'] im not sure if i spelt it correctly.. so check with the manual as its spelt wrong there.
$_SERVER['HTTP_REFERER'] sounds a bit wierd to me!
You can do:
<?php echo $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"] ?>