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,
Premashish

hmm. not too sure I understand it fully but let me take a stab at this

here is one way:

on index.php it would look something like this:

[php]
include(“header.php”);
include(“menus.php”);

include("leftpanel.php");
$page = $_GET['page']; $pages = array('page1', 'page2', 'page3'); if (!empty($page)) { if(in_array($page,$pages)) { $page .= '.php'; include($page); } else { echo 'Page not found. Return to index'; } } else { include('page1.php'); }
include("rightpanel.php");
include("footer.php"); [/php]

then on your menus for the links you would run everything to index.php with the GET variable added on like:
index.php?page=notes.php

this is one idea I am certain there is twenty more different ways to accomplish this let me know if this is what you were meaning

Sponsor our Newsletter | Privacy Policy | Terms of Service