body{
background:grey;
}
a{
background:lightgrey;
color:brown;
padding-top:20px;
padding-bottom:20px;
margin-top:20px;
display:block;
border:2px solid grey;
}
a:hover{
background:grey;
border:2px solid lightgrey;
}
<a href="<?php isset($_GET['bookmark']) ? $_SERVER['REQUEST_URI'] : null ?>?bookmark=activity">click</a>
<a href="<?php isset($_GET['gra']) ? $_SERVER['REQUEST_URI'] : null ?>?gra=activity">click</a>
<br /><br /><br />
<?php
if(isset($_GET['gra'])=='activity'){
echo 'In the same!';
}else if(isset($_GET['bookmark'])=='activity'){
echo 'In the other!';
}
?>
Drugie rozwiązanie:
main.php:
<?php include 'header.php'; ?>
Content Site1....
<?php include 'footer.php'; ?>
subpage.php:
<?php include 'header.php'; ?>
Content Site2....
<?php include 'footer.php'; ?>