Jump to content

need some logic to get menu li class selected


$php_mysql$

Recommended Posts

here

 

<!--/*Menu Start*/-->
<div id="menu">
<ul>
		<li><a href="index.php">Home</a></li>
		<li><a href="aboutus.php">About Us</a></li>
		<li><a href="faqs.php">Faqs</a></li>
		<li><a href="contactus.php">Contact Us</a></li>
</ul>

</div>
<!--/*Menu End*/-->

 

this in named as menu.php and i include this in every pages

Link to comment
Share on other sites

and the other pages are like this

 

<?php
include 'functions.php';
?>

<?php
include 'header.inc.php';
?>	
	<title>Contact Us</title>
</head>
<body>

<!--/*Main Start*/-->
<div id="main">

<?php
include 'header_content.php';
?>

<?php
include 'menu.inc.php';
?>

<div id="content_top"></div>


<!--/*Content Start*/-->
<div id="content">

<div id="title_bar"></div>



</div>
<!--/*Content End*/-->

<div id="content_bottom"></div>

<?php
include 'footer.inc.php';
?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.