Geef je index wel even <html><head><body> en die meta (tussen head). Misschien geeft dit verheldering.
waarom doe je niet gewoon simpel?
niet met switch etc...
<?php
if(!empty($_GET['p']))
{
$p = $_GET['p'];
}else{
$p= "home.php";
}
include($p);
?>
ok:
<?php session_start();
include"functions.php";
if ($_SESSION['logged_in']==ja) {
$dag = date('j');
$maand = date('n');
$jaar = date('Y');
$dagvdweek = date('w');
$maanden_array = array(
"January", "February", "March", "April",
"May", "June", "July", "August", "September", "October", "November", "December");
$maand_naam = $maanden_array[$maand-1];
$datum = "$dag $maand_naam $jaar";
?>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<html>
<head>
<title>:: Admin Area ::</title>
<style type="text/css">
body { background: #E5E5E5; font-family: Verdana; font-size: 11px; }
td { font-family: Verdana; font-size: 11px; color: #000000; }
/** Main CSS classes **/
.alt1 { background:url(alt1.jpg); color: #000080; }
.header { background: #F1F1F1; color: #000080; }
.mainborder { background: #C0C0C0; }
.maincontent { background: #FFFFFF; }
.menu { color: #000080; font-weight: bold; }
.menu a:link { color: #000080; text-decoration: none; }
.menu a:visited { color: #000080; text-decoration: none; }
.menu a:active { color: #D1DCFF; text-decoration: none; }
.menu a:hover { color: #D1DCFF; text-decoration: underline; }
.menubg { background: #F1F1F1; }
.tborder { background: #C0C0C0; }
</style>
</head>
<body>
<table border="0" cellspacing="4" cellpadding="1" width="750" align="center">
<tr>
<td class="mainborder">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tr>
<td class="header" colspan="2" align="center">
<?php include"header.php"; ?>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table border="0" cellspacing="4" cellpadding="1" width="750" align="center">
<tr>
<td class="mainborder">
<table border="0" cellspacing="0" cellpadding="6" width="100%">
<tr>
<td class="menubg" width="150" nowrap valign="top">
<font class="menu">
<? include"menu.php"; ?>
</font>
<br>
<br>
<br>
<br>
</td>
<td class="maincontent" width="100%" valign="top">
<div align="center">
<center>
<?php include"home.php"; ?>
</div>
<br>
<br>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html><center><small>© Copyright <i>#Fearlezz|Virtual</i> - Powered by:<br><br>
<img src="php-logo.gif"> <img src="mysql-logo.gif">
</small></center>
<?
} else {
echo"It would be nice if you tried to login first?";
}
?>
if ($_SESSION['logged_in']==ja) {
ja moet tussen "" dus
if ($_SESSION['logged_in']=="ja") {
en de meta regel moet tussen <head> en </head>