$_GET to name of php file?
Posted 06 April 2006 - 04:30 PM
Here is the breakdown. I have a leftbar that is being pulled as an include, and I want the contents to change based on the page they are on in my site. So the value is different at page1.php and page2.php rather than ?page=1
Can $_GET do this? Is there another command that can?
Posted 06 April 2006 - 04:56 PM
Posted 06 April 2006 - 05:30 PM
if $_SERVER['PHP_SELF'] == [a href=\"http://www.site.com/php.php\" target=\"_blank\"]http://www.site.com/php.php[/a]
Ahhh okay, what I was looking for was $_SERVER['REQUEST_URI']; since that only returns the base file name
In this case
or /about.php for the base page.
About to test it out and see how it flys. I might have some questions involving wildcards in a bit since I will need to get /about.php?view=vitals and /about.php results to act the same.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users