@getenv("HTTP_REFERER")

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

digitalbloke
New php-forum User
New php-forum User
Posts: 59
Joined: Tue Jul 01, 2003 7:02 am

@getenv("HTTP_REFERER")

Postby digitalbloke » Thu Sep 04, 2003 1:36 pm

If i want to get the page before @getenv("HTTP_REFERER") so in other words the referer of @getenv("HTTP_REFERER") how can i do so?

thank you!

User avatar
swirlee
Moderator
Moderator
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back
Contact:

Re: @getenv("HTTP_REFERER")

Postby swirlee » Thu Sep 04, 2003 1:39 pm

digitalbloke wrote:If i want to get the page before @getenv("HTTP_REFERER") so in other words the referer of @getenv("HTTP_REFERER") how can i do so?


You can't. Browsers only send the referrer to the current page. If the page before that is on your site, you could use sessions or hidden form fields or whatever to keep forwarding old referrers, but otherwise you're out of luck, and with good reason.

User avatar
WiZARD
Moderator
Moderator
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol
Contact:

Re: @getenv("HTTP_REFERER")

Postby WiZARD » Tue Sep 09, 2003 3:36 am

swirlee wrote:
digitalbloke wrote:If i want to get the page before @getenv("HTTP_REFERER") so in other words the referer of @getenv("HTTP_REFERER") how can i do so?


You can't. Browsers only send the referrer to the current page. If the page before that is on your site, you could use sessions or hidden form fields or whatever to keep forwarding old referrers, but otherwise you're out of luck, and with good reason.

i want to give a more precise definition....
it's not browser it's HTTP protocols......

User avatar
ruturajv
php-forum Super User
php-forum Super User
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

headers

Postby ruturajv » Tue Sep 09, 2003 9:31 pm

It is this way
1. Headers first
2. then the crap content


Return to “PHP coding => General”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest