Help with using a variable in 2 pages at once
Posted: Sat Jul 16, 2005 4:14 pm
I have a question and i can't figure it out. I have a web page that i use basically as my template, which consists of include commands to use other pages. So that way if i change the banner page and since it is included in all my templates, it will automatically update on all those pages.
Now i have a send page to friends function on my banner page. And it works, however it is based of using $PHP_SELF; However since it is on the banner page, it uses the link for the banner as the link to be sent out. I was wondering if anyone had ideas oh how to get it to work and use the templates link.
I was thinking of having a global variable in the template page, which would be assigned $PHP_SELF; and thus have the value of the template, which is what i want. However since the banner page in included into the template page, i am not sure how to pass that link over. Does anyone have any ideas. Sorry if it is not explained well.
Now i have a send page to friends function on my banner page. And it works, however it is based of using $PHP_SELF; However since it is on the banner page, it uses the link for the banner as the link to be sent out. I was wondering if anyone had ideas oh how to get it to work and use the templates link.
I was thinking of having a global variable in the template page, which would be assigned $PHP_SELF; and thus have the value of the template, which is what i want. However since the banner page in included into the template page, i am not sure how to pass that link over. Does anyone have any ideas. Sorry if it is not explained well.