hvorfor fungere min session ikke ?
hvorfor fungere min session ikke ?det her er min include fil
<table border="0" cellspacing="0" cellpadding="0" class="text2">
<tr>
<td class="text2" width="22" height="100">
</td>
<td class="text2">
</td>
</tr>
<tr>
<td class="text2">
</td>
<td class="text2" width="375">
<div style="
scrollbar-arrow-color: #000000;
scrollbar-3dlight-color: none;
scrollbar-highlight-color: none;
scrollbar-face-color: none;
scrollbar-shadow-color: none;
scrollbar-darkshadow-color: none;
scrollbar-track-color: none;
OVERFLOW: auto;
HEIGHT: 350 px;">
<b>Admidnistrator log ind:</b><br>
<i>kun Ed Maplewood der har adgang til denne her side.</i><br>
<br>
<?
if ($_GET['tjeck'] == "login"){
if ($_POST['brugernavn'] == "bruger" AND $_POST['password'] == "password"){
$_SESSION['test'] = "sssrrrtg3d";
print('<script language=\'javascript\'>location.href=\'index.php\';</script>');
}
else {
print('<script language=\'javascript\'>location.href=\'index.php?side=admin\';</script>');
}
}
else {
echo "SESSION: ". $_SESSION['test'];
?>
<form action="admin.php?tjeck=login" method="post">
Brugernavn:<br>
<input type="text" name="brugernavn" size="25"><br>
Password:<br>
<input type="password" name="password" size="25"><br>
<input type="submit" value="log ind" size="35"><br>
</form>
<?
}
?>
</div>
</td>
</tr>
</table>
og det her er min index fil
<HTML>
<HEAD>
<link rel="stylesheet" href="maplewood.css" type="text/css">
<TITLE>maplewood</TITLE>
</HEAD>
<BODY style="margin: 0 0 0 0; overflow: hidden;" bgcolor="#FFFFFF">
<table width="0" height="30" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
</td>
</a>
</tr>
</table>
<center>
<table width="770" height="483" border="0" cellspacing="0" cellpadding="0" background="maplewood.jpg">
<tr>
<td>
<div class="frame">
<?
if ($_GET['side'] == ""){
include "forside.php";
}
elseif ($_GET['side'] == "profil"){
include "profil.php";
}
elseif ($_GET['side'] == "venner"){
include "venner.php";
}
elseif ($_GET['side'] == "magi"){
include "magi.php";
}
elseif ($_GET['side'] == "opslagstavle"){
include "opslagstavle.php";
}
elseif ($_GET['side'] == "kontakt"){
include "kontakt.php";
}
elseif ($_GET['side'] == "admin"){
include "admin.php";
}
else {
echo "Siden findes ikke....";
}
?>
</div>
</td>
</a>
</tr>
</table>
</center>
<table width="0" height="2" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
</td>
</a>
</tr>
</table>
<center>
<table width="770" height="" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="text">
<a href="index.php">forside</a> |
<a href="index.php?side=profil">magiske mig</a> |
<a href="index.php?side=venner">mine magiske venner</a> |
<a href="index.php?side=magi">magic cardes</a> |
<a href="index.php?side=opslagstavle">den magiske opslagstavle</a> |
<a href="index.php?side=kontakt">kontakt</a> |
<a href="index.php?side=admin">admin</a>
</td>
</a>
</tr>
</table>
</center>
<table width="0" height="20" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
</td>
</a>
</tr>
</table>
<center>
<table width="770" height="" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="text">
<center>
<a href="mailto:webmaster@titad.dk">©2004 www.titad.dk. Alle rettigheder forbeholdes</a>
</center>
</td>
</a>
</tr>
</table>
</center>
<table width="0" height="5" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
</td>
</a>
</tr>
</table>
</body>
</HTML>