I have seen it before but i have a login page and if any1 trys to get to a restricted page it goes back to the login page and they login but then it goes 2 the main members page... but i want it 2 go to the page that they previously went to... im sure that there is a code cause i have seen it be4 that gets the current pagename
Thanks 🙂
Bizzaire
you might be able to use $go = $_SERVER['HTTP_REFERER']; header("Location: $go");
Most of its in the url Some of the time. But Normally if a form is involved it will be a hidden feild
Now with Restricting people. They either use Sessions or cookies. And if the session/cookie doesnt exist they goto the login page
thats exactually what i was looking for 🙂
thanks dude
$go = $_SERVER['HTTP_REFERER']; header("Location: $go");
Duey unless his gonna use $go again which i doubt
why not just do this
header("location: $_SERVER[HTTP_REFERER]");
u guys sure do post replys quick 🙂
no1 needs to post anymore.. i got what i need
thanks for all ur help ppl 😃
i know that planet i just like my code to be structured
I think his is cleaner.