Re: This is a tricky one

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



$PHP_SELF is the name of the current page.
-Dave

At 11:11 AM 1/13/2005, Louis Young wrote:
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


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux