DeanWhitehouse Posted May 11, 2008 Share Posted May 11, 2008 i have made this code to check what page you are on and depending on the page, show a link or not <?php if($_SERVER['HTTP_HOST'] == "http://darkflame.awardspace.com/") { if($_SERVER['REQUEST_URI'] == "/index.php") { echo "Main"; } } else { echo '<a href="index.php">Main</a>'; } ?> but the first if , isn't working and it is displaying a link any ideas, on how to fix this Link to comment https://forums.phpfreaks.com/topic/105170-solved-nav-bar-help-dynamic-color-depending-on-page/ Share on other sites More sharing options...
DeanWhitehouse Posted May 11, 2008 Author Share Posted May 11, 2008 i fixed it Link to comment https://forums.phpfreaks.com/topic/105170-solved-nav-bar-help-dynamic-color-depending-on-page/#findComment-538477 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.