It's been a long day and I can't seem to put this simple logic together...
I have a navigation with four buttons. Each button has ON and OFF state.
I have four pages. Each page has a marker, say
$mypage = "page1", $mypage = "page2", $mypage = "page3"" and $mypage = "page4" accordingly.
I've abstructed the menu into a separate include file. Now all I need is to put the proper logic in place so that when I'm on page1 I need button1_on.gif on page2 - button2_on.gif etc.
I've tried the following:
<img src="button1_<?
if ($mypage = "page1") {
echo ("on"); }
else {
echo ("off");
}
?>.gif">
Now, I'm getting crossed at some point when I try to weave in all four buttons. So, did anyone manage to take a nap today and can think clearly, unlike me?