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 Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.