Jump to content

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.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.