Jump to content

Pass


Bakes

Recommended Posts

Ok, my php page includes a file, which includes a second file. The second file provides the navigation bar of the first file.

 

Now, the navigation bar uses ' $_SERVER["PHP_SELF"];' to determine what page it's on, to determine what page, and as such what links to use. Unfortunately, this uses the included file rather than the main file. How would I get the current url of the main page, rather than the included page?

Link to comment
https://forums.phpfreaks.com/topic/157392-pass/
Share on other sites

This is correct. The reason I am doing this, is because they are hosted on different webservers, for reasons I don't want to go into.

 

I have replaced $_SERVER["PHP_SELF"] in the first included file with the true path, but I cannot do this for the banner because it changes for different pages.

So, how would I pass the var between the first included page and its banner?

Link to comment
https://forums.phpfreaks.com/topic/157392-pass/#findComment-829690
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.