How to call external page and how to place into specific location?

Hello Friends,
I have designed a page, it has header, footer, menus, left panel, right panel and body. Here I kept all in separate file and included with PHP include() function. And I need when I click any menu (I used hyperlink) the specific page should be open in the main body location. So my problem is how to call specific page by specific menu and how to place in main body page at specific location. In this case my main body page, menu page and external page all are different page. If anyone have good idea about this kindly help me.

Thanks & Regards,

One way would be to have the menu for the body of your page set a variable. Then in your code have the the variable part of your include.

If the menu points to page1, set a variable $page01. Where page01 is the name of a file you want in the body section. Then use include to include that file.

I may be wrong, but I think for the link to work, you would need to use something like an iframe in the body of your page.

Nein! no iframes plz.

Something like this should work:

<div id="menu">
<li><a href="">Home</a></li>
<li><a href="?page=contact">Contact</a></li>
<li><a href="?page=about">About us</a></li>
<div id="body">
$page = "home";
if(isset($_GET['page']) && strlen($_GET['page']) > 0){
    $page = $_GET['page'];
include('path_to_your_page_files/' . $page . '.php');