Thank you so much for replying. I still didn't quite understand so I tried another thing that crossed my mind, and it seem to work! I'm not sure if it's a "good" way to solve it though..
Here goes. Since I had already placed an identifier at the top of every page, like this:
<?php $thisPage="Page 3"; ?>
to control the "current" class, I put another identifier there as well:
<?php $beforePage="Page 4"; ?>.
A page could only be a "before page" to one other page (the page right after it). That way I could control both the current and the before-current class, and write the menu items like this:
<li<?php if ($thisPage=="Page3") {
echo " class=\"current\""; }
elseif ($beforePage=="Page3") {
echo " class=\"before-current\""; }
else { echo " class=\"normal\""; }?>>
<a href="../index.php"><span>Start</span></a></li>
It works fine, but do you see any problems with it?
Thanks again!