Min index.php ser sådan ud:
<? session_start(); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
http://www.w3.org/TR/html4/loose.dtd"> <?
$pageid = $_GET['pageid'];
?>
<?
$kategori = $_GET['kategori'];
?>
<html>
<head>
<title>RecaroShop.dk</title>
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="shortcut icon" href="icon.ico">
</head>
<body>
<div id="center">
<div id="top">
<div id="logo">
</div>
<div id="banner">
Banner
</div>
</div>
<div id="content">
<br>
<div class="contentcontent">
<div class="contentt">
top
</div>
<div class="contentc">
<?
if($pageid == "1" && $kategori=="content"){ include("content.php");
}
else if($pageid == "2" && $kategori=="Tilføj menu"){ include("menu/add.php");
}
else if($pageid == "3" && $kategori=="Tilføj menu kategori"){ include("menu/addkategori.php");
}
else if($pageid == "4" && $kategori=="menukategori"){ include("menu/addkategori-ok.php");
}
else if($pageid == "5" && $kategori=="Tilføj menu punkt"){ include("menu/addmlink.php");
}
else if($pageid == "6" && $kategori=="menupunkt"){ include("menu/addmlink-ok.php");
}
else if($pageid == "7" && $kategori=="Menu"){ include("menu/menu.php");
}
else if($pageid == "8" && $kategori=="Tilføj billede"){ include("picupload/add.php");
}
else if($pageid == "9" && $kategori=="addpic"){ include("picupload/upload-ok.php");
}
else if($pageid == "10"){ include("picupload/getpicture.php");
}
else if($pageid == "11" && $kategori=="$kategori"){ include "picupload/getpicturekategori.php";
}
else if($pageid == "12" && $kategori=="$kategori"){ include("picupload/showpicture.php");
}
else if($pageid == "13" && $kategori==""){ include("admin/status.php");
}
else if($pageid == "14" && $kategori==""){ include("admin/login.php");
}
else if($pageid == "15" && $kategori==""){ include("admin/login_confirm.php");
}
else if($pageid == "16" && $kategori==""){ include("admin/medit/admin_link.php");
}
else if($pageid == "17" && $kategori==""){ include("admin/medit/link_edit_ok.php");
}
else if($pageid == "18" && $kategori==""){ include("admin/medit/mlinkedit.php");
}
else {
}
?>
</div>
<div class="contentb">
</div>
</div>
</div>
<div id="leftmenu">
<br>
<div class="menucontent">
<div class="menucontentt">
Navigation
</div>
<div class="menucontentc">
<?
include "menu/menu.php";
?>
</div>
<div class="menucontentb">
</div>
</div>
<br>
<div class="menucontent">
<div class="menucontentt">
Reklame
</div>
<div class="menucontentc">
indhold
</div>
<div class="menucontentb">
</div>
</div>
<br>
</div>
<div id="rightmenu">
<br>
<div class="menucontent">
<div class="menucontentt">
Admin login:
</div>
<div class="menucontentc">
<?
include "admin/login.php";
?>
</div>
<div class="menucontentb">
</div>
</div>
</div>
</body>
</html>
I toppen er vist det du spørger efter:
"Mangler du mon ikke disse to linjer:
$pageid = $_POST["pageid"];
$kategori = $_POST["kategori"];"
men af hvad jeg umiddelbart kan se, skal menuen skrives om, ellers kan jeg vil ikke anvende den side visnings metode som jeg anvender nu????