I am trying to make my navigation to change color when selected. the class for selected is “current”
so I wrote this:
<ul class=”<?php if(myfullpath() == “
so if the url in the address bar is not first.php or second.php it should return false and echo ” “, but for some odd reason this is returning true and posting class=”current”> even if the url is posting [url]http://www.domain.com/fourth.php
JUST FYI here is the myfullpath function:
function myfullpath() { $s = empty($_SERVER[“HTTPS”]) ? ” : ($_SERVER[“SERVER_PROTOCOL”]), “/”).$s; $port = ($_SERVER[“SERVER_PORT”]); return $protocol.”://”.$
thanks for your help.