Is there a variable to return the current title of the page?
Moderator: General Moderators
Is there a variable to return the current title of the page?
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....
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.
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.