Ik ben dus met een menu bezig 
Maar ik stuit dus op een probleem, ik werk met $_GET[p] dus al mijn paginas worden geopend in mijn indexpagina. Maar ik wil dus ook een active menu... like this:
Voor mijn HOME werkt dit prima maar niet voor me andere links omdat die OOK met index.php beginnen bv index.php?p=contact
Weet iemand een oplossing?
Dit werkt dus niet:

Maar ik stuit dus op een probleem, ik werk met $_GET[p] dus al mijn paginas worden geopend in mijn indexpagina. Maar ik wil dus ook een active menu... like this:
<a href="index.php" [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/basename"]basename[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]]) ==[/COLOR] [COLOR= #DD0000]"index.php"[/COLOR][COLOR= #007700]){[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"class=active"[/COLOR][COLOR= #007700]; }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"class=link"[/COLOR][COLOR= #007700]; }[/COLOR] ?> >HOME</a> Voor mijn HOME werkt dit prima maar niet voor me andere links omdat die OOK met index.php beginnen bv index.php?p=contact
Weet iemand een oplossing?
Dit werkt dus niet:
<a href="index.php?p=contact" [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/basename"]basename[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_SELF[/COLOR][COLOR= #007700]]) ==[/COLOR] [COLOR= #DD0000]"index.php?p=contact"[/COLOR][COLOR= #007700]){[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"class=active"[/COLOR][COLOR= #007700]; }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"class=link"[/COLOR][COLOR= #007700]; }[/COLOR] ?> >CONTACT</a> 




Maar nog 1 probleem 
