Jeg har lavet det sådan her:
if ($_GET[pageid] == 3) {
include("scripts/get_members.php");
}
elseif ($_GET[pageid] == 5) {
include("scripts/get_newsarchive.php");
}
elseif ($_GET[pageid] == 7) {
include("scripts/get_links.php");
}
elseif ($_GET[pageid] == 8) {
include("scripts/mail/mailform.php");
}
elseif ($_GET[pageid] == 9) {
header('Location: memberarea/index.php');
}
elseif ($_GET[pageid]) {
include("scripts/get_text.php");
}
else
include("scripts/get_frontpage.php");
Det er ved pageid 9 som I kan se, men det giver denne fejl:
Warning: Cannot modify header information - headers already sent by (output started at /Users/gunnar/Sites/DMFF/index.php:22) in /Users/gunnar/Sites/DMFF/index.php on line 56
Mvh
Gunnar
[Redigeret d. 24/05-05 10:52:42 af Gunnar Kristiansen]