Louis,

Try using $_SERVER['REQUEST_URI']. That will tell you the name of the page 
requested.

Randy Clamons
Systems Programming
Astro-auction.com


> ------------Original Message------------
> From: Louis Young <[EMAIL PROTECTED]>
> To: php-windows@lists.php.net, [EMAIL PROTECTED]
> Date: Thu, Jan-13-2005 11:44 AM
> Subject: [PHP-WIN] This is a tricky one
>
> Hi
> 
> I have a header which I just include every time from all my pages, but 
> the headers caption needs to change according to the page which has 
> been 
> loaded. I've tried global variables, but as soon as I jump into a 
> different session they seem to lose their values. So, what I did was 
> created a table in the database with two fields pagename and header. 
> Pagename is the name of the page and header is the header which I want 
> to display, then I can send the page name as a parameter to a query to 
> get the header.
> 
> The only problem now is the header doesn't know what the name of the 
> page is that is loading underneath it. At first I thought I could use 
> HTTP_REFERER, but this would only be true if the page is the loader of 
> the header, which is not always the case.
> 
> Any help will be appreciated.
> 
> Cheers
> Louis
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to