I have 6 files.
- header.php
- footer.php
- home.php
- page1.php
- page2.php
- index.php
header.php
<html>
<head>
<title>test</title>
</head>
<body>
<div class="menu">
<ul>
<li><a href="home.php>Home</a></li>
<li><a href="page1.php>Page 1</a></li>
<li><a href="page2.php>Page 2</a></li>
</ul>
</div>
<div class="content">
footer.php
</div>
</body>
</html>
index.php
<?php
include "header.php";
//content goes here
include "home.php"; //this include must change when i click on page 1 or page 2 link
//content goes here
include "footer.php";
?>
How can i dynamically change the content of index.php when i click on the links?