Hi,
i had been using for so long a snippet like this one
<? if($currentpage=”treatment”) echo “class=act”; ?>
but now im trying it in a page and it doesnt work. The if ignores the condition and echoes anyway regardless of the variable ($currentpage could be anything and it still echoes). I checked the syntax 1 million times and its correct so i really dont understand why is not working. Can you please give me a hint?? The full block of code goes like this
[code=php]
<ul id=”menu”>
<li><a href=”index.html”>Index</a></li>
<li <? if($currentpage=”treatment”) echo “class=act”; ?>><a href=”treatment.php”>Treatment</a></li>
Thank you.