heminfotech Posted December 26, 2006 Share Posted December 26, 2006 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. Link to comment https://forums.phpfreaks.com/topic/31871-solved-how-to-get-the-active-status-of-any-page/ Share on other sites More sharing options...
rajmohan Posted December 26, 2006 Share Posted December 26, 2006 sorry i cannot catch you please explain Link to comment https://forums.phpfreaks.com/topic/31871-solved-how-to-get-the-active-status-of-any-page/#findComment-147887 Share on other sites More sharing options...
ted_chou12 Posted December 26, 2006 Share Posted December 26, 2006 what you are trying to explain is if you can determine if the current page name is index.php or not? Link to comment https://forums.phpfreaks.com/topic/31871-solved-how-to-get-the-active-status-of-any-page/#findComment-147889 Share on other sites More sharing options...
heminfotech Posted December 26, 2006 Author Share Posted December 26, 2006 ok let me explain againI want that if I am on Index.php then I need A & B as link in bottom to be shownif I am on any other page then I want that C & D as link in the bottom to be shownIs 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 Link to comment https://forums.phpfreaks.com/topic/31871-solved-how-to-get-the-active-status-of-any-page/#findComment-147892 Share on other sites More sharing options...
ted_chou12 Posted December 26, 2006 Share Posted December 26, 2006 no problem. it is possible, give me a while Link to comment https://forums.phpfreaks.com/topic/31871-solved-how-to-get-the-active-status-of-any-page/#findComment-147893 Share on other sites More sharing options...
heminfotech Posted December 26, 2006 Author Share Posted December 26, 2006 [quote author=ted_chou12 link=topic=119940.msg491688#msg491688 date=1167135948]no problem. it is possible, give me a while[/quote]thanks Link to comment https://forums.phpfreaks.com/topic/31871-solved-how-to-get-the-active-status-of-any-page/#findComment-147894 Share on other sites More sharing options...
ted_chou12 Posted December 26, 2006 Share Posted December 26, 2006 [code]<?php if ($_SERVER['PHP_SELF'] == "/index.php"){echo "link A & B here";}else {echo "link C & D here";}?>[/code] Link to comment https://forums.phpfreaks.com/topic/31871-solved-how-to-get-the-active-status-of-any-page/#findComment-147895 Share on other sites More sharing options...
heminfotech Posted December 26, 2006 Author Share Posted December 26, 2006 [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. Link to comment https://forums.phpfreaks.com/topic/31871-solved-how-to-get-the-active-status-of-any-page/#findComment-147897 Share on other sites More sharing options...
ted_chou12 Posted December 26, 2006 Share Posted December 26, 2006 welcome, glad to hear that ;) Link to comment https://forums.phpfreaks.com/topic/31871-solved-how-to-get-the-active-status-of-any-page/#findComment-147899 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.