I am very new to PHP, but I want to use it for making simpler my pages.
My problem is the following:
I have a header frame of which's the contents I want to change each time the user clicks another link. So I planned that it will call the header.php, in which according to the URL clicked, will provide the respective content. I am now stuck at how I can get the URL of the link that the user will have just clicked. That is, I want to get the URL of the new link that the user navigates, and thus produce the needed header.
Although I cannot be sure, I have a feeling that the URL is an information that can be shared just as the HTTP_USER_AGENT variable.
Thanks beforehand for your help,