Jump to content

include strange menu


simeon

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.