I know how to do that.. I mean...
say you went to login.php via test1.php, when you login, it would redirect you to test1.php, but, if you logged in on test2.php, it would redirect you to test2.php etc
I need to make a $tag that is what the refer page was.
so.. it would be
header("Location: $refer");
regards;
Alex.