if you want to include header.php pages in your application and want to change css style depends on current load page like this

code brief here

< ?php
$pagename= basename($_SERVER['PHP_SELF']);
if($pagename=="header.php")
{
$class="selected";
}
else
{
$class="normal";
}
?>
{
$class="selected";
}
else
{
$class="normal";
}
?>
{
$class="selected";
}
else
{
$class="normal";
}
?>

{
$class="selected";
}
else
{
$class="normal";
}
?>

{
$class="selected";
}
else
{
$class="normal";
}
?>

Share on Facebook