Page 1 of 1
Is there a variable to return the current title of the page?
Posted: Sat Jun 15, 2002 1:32 am
by MattSharp
Like the part in the title bar at the very top of IE, or what goes in <TITLE> or something, I guess I could use the URL, how can you ge the whole URL of the current page, is it $REQUEST_URI ? Thanks....
Posted: Sat Jun 15, 2002 2:52 am
by volka
hmmmm....you just generate the current page

but the url of the page that has been displayed (and probably still is) may be stored in $_SERVER['HTTP_REFERER'] (or $HTTP_REFERER in older versions). $_SERVER['REQUEST_URI'] (or $REQUEST_URI) contains the
link to your script. The client(browser) won't send you the content of it's current page.