|
Nothing is wrong with having presentation logic in your html, as long as you don't have your business logic there. However if you want your HTML a little cleaner, you can do this with stylesheets?
<link rel="stylesheet" href="highlight-style-css.php?<?= $_REQUEST['current'] ?>" type="text/css" />
Then you have have your menu like this:
<table>
<tr><td><a class="menu" id="home" href="blah">Home</a></td><td><a class="menu" id="link-codes" href="blah-links">Link Codes</a></td></tr>
</table>
In the style sheets, you have a default for menu, and the only one you override is the one you want to show as active.
__________________
AIM: PerlScriptor
|