Jump to content

[SOLVED] How to get the active status of any page


heminfotech

Recommended Posts

I have navigation bar based on that, i want to see that if Its Index.php then there must be some links available at the bottom. Else some other links must be available is that possible.

If that is possible then how to do that

thanks for ur all co-operations.
ok let me explain again

I want that if I am on Index.php then I need A & B as link in bottom to be shown

if I am on any other page then I want that C & D as link in the bottom to be shown

Is that possible to get the status of the page that On which page I am. If Yes then help me how to get that status
[quote author=ted_chou12 link=topic=119940.msg491690#msg491690 date=1167136067]
[code]
<?php if ($_SERVER['PHP_SELF'] == "/index.php"){echo "link A & B here";}
else {echo "link C & D here";}
?>
[/code]
[/quote]

Thnaks U very very much ted_chou12 your code works.

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.