simeon Posted January 5, 2007 Share Posted January 5, 2007 Hello guys,i need some help.i wanna include a menu,which to change the style of the link by clicking on a link from it.here is the link ([url=http://tabletennis-bg.org]http://tabletennis-bg.org[/url]) to that menu. How can i do that,i don't have an idea.how can i make it to "understand" that you're on a page of the link and to change its style.i'll be gratefull if you give me an example.thank you in advance!Sorry for my bad english Link to comment https://forums.phpfreaks.com/topic/33020-include-strange-menu/ Share on other sites More sharing options...
michaellunsford Posted January 6, 2007 Share Posted January 6, 2007 in your example, they might be [code=php:0]include[/code]ing the menu at the left. The menu.php file might be detecting what page it's being displayed on with something like this:[code]<?php$current_page=end(explode("/",$_SERVER['PHP_SELF'])); ?>[/code] Link to comment https://forums.phpfreaks.com/topic/33020-include-strange-menu/#findComment-153880 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.