Code:
Top of page/navigation
<div>
<? include "page_to_be_displayed.html(or .php)"; ?>
</div>
Bottom stuff like copyright etc.
you can format that however you want. My page is as follows (well on of my pages ):
Code:
<?
session_start();
include "db.php";
function content()
{
switch( $_GET['id'] ) {
case '1' :
include 'general.php';
break;
default:
include 'index.php';
break;
}
}
/*function buy()
{
switch( $_GET['action'] ) {
case 'buy' :
include 'buy.php';
break;
default:
include 'index.php';
break;
}
}
*/
?>
<html>
<head>
<title>.:`~Infinite Opportunities~`:.</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<table width="100%">
<tr>
<td>
<img src="../images/banner.gif">
<br />
</td>
</tr>
<tr>
<td>
<table width="65%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
<TABLE WIDTH=173 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD>
<IMG SRC="../images/link_01.gif" WIDTH=173 HEIGHT=22 ALT=""></TD>
</TR>
<TR>
<TD background="../images/link_02.gif" width="173" height="20" style="background-repeat: repeat-y;">
<div width=170 style="position: relative; left: 3;">
<?
include "../links.php";
?>
</div>
<!--<IMG SRC="../images/link_02.gif" WIDTH=173 HEIGHT=20 ALT="">--></TD>
</TR>
<TR>
<TD>
<IMG SRC="../images/link_03.gif" WIDTH=173 HEIGHT=10 ALT=""></TD>
</TR>
</TABLE>
</td>
<td valign="top">
<TABLE WIDTH=570 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TD>
<IMG SRC="../images/content_01.gif" WIDTH=570 HEIGHT=30 ALT=""></TD>
</TR>
<TR>
<TD background="../images/content_02.gif" WIDTH=570 HEIGHT=52 style="background-repeat: repeat-y;">
<div width=567 style="position: relative; left: 3;">
<?
content();
//buy();
?>
</div>
<!--<IMG SRC="../images/content_02.gif" WIDTH=570 HEIGHT=52 ALT="">--></TD>
</TR>
<TR>
<TD>
<IMG SRC="../images/content_03.gif" WIDTH=570 HEIGHT=30 ALT=""></TD>
</TR>
</TABLE>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
thats pretty much a suped up version.
basically, it checks for the HTTP variable 'id' (
http://www.afdafasf.com/home.php?id=1)
if and only if id = 1 will the page general.php be displayed. otherwise index.php will be displayed (default).
All of the html is just the 'pretty' part of the layout.
If that doesn't help then post here and i will simplify it(im just too lazy to type more right now).
Since these are no longer temporary forums, I will update my signature.