Page 1 of 1

Which page posted

Posted: Mon Mar 21, 2011 12:13 am
by Wootah
Hi all,

I am hopeful that there is a php variable that tells me which page posted the current page without using sessions or querystrings.

I am using sessions currently but just wondered.

Thanks,

Mat

Re: Which page posted

Posted: Mon Mar 21, 2011 7:05 am
by divedj
$_SERVER['HTTP_REFERER'] is holding the refering page. You got to be a bir careful how you use it. Soon as you hit the browsers refresh button, $_SERVER['HTTP_REFERER'] will refer to the page you are currently on.

If it is realy important to be able to go back to the refering page or the refering page is needed for whatever important reason I would still use a session.

Re: Which page posted

Posted: Tue Mar 22, 2011 11:39 pm
by Wootah
thanks mate.