On Tue, April 18, 2006 12:49 pm, Yudie wrote:
> Does anyone know how to resolve my problem
> I tried to get the referer url with $_SERVER['HTTP_REFERER'] but
> returns
> blank when I use javascript: document.location='...' from the previous
> page.

Don't do that.
:-)

More specifically, no browser is required to provide HTTP_REFERER, so
that value is completely un-reliable.

If, for some reason, your application NEEDS the preceding page, you'll
need to track it in the URL, or in their session, or through some
mechanism that YOU control.

Rule #1:
Never, ever, ever, trust the browser.
Or the guy/gal/bot using it, for that matter.

Hope that helps, even if it's *so* not what you wanted to hear.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to