PHP expert |
|
maar hoe roep ik $page dan weer op in content_ht.php?
EDIT: nvm, ik begrijp het
Thx dolfje
EDIT2: nu heb ik nog iets raars:
Citaat: Parse error: syntax error, unexpected '=' in C:Program Filesxamppwwwindex.php on line 41
lijn 41 is
ik heb de code als volgt aangepast:
<?php
$page = $_GET['page'];
if(isset($_GET['page'])) {
if($page == "manager.php") {
$pag = "man"; id = $id; include "content_ht.php";
}
elseif($page == "spelers.php") {
$pag = "spe"; id = $id; include "content_ht.php";
}
elseif($page == "klasse.php") {
$pag = "kla"; id = $id; include "content_ht.php";
}
elseif($page == "wedstr.php") {
$pag = "wed"; id = $id; include "content_ht.php";
}
elseif($page == "club.php") {
$pag = "clu"; id = $id; include "content_ht.php";
}
elseif($page == "train.php") {
$pag = "tri"; id = $id; include "content_ht.php";
}
elseif($page == "transfer.php") {
$pag = "tra"; id = $id; include "content_ht.php";
}
}
else {
include "content_ht.php";
}
?>
<?php $page = $_GET['page']; if(isset($_GET['page'])) { if($page == "manager.php") { $pag = "man"; id = $id; include "content_ht.php"; } elseif($page == "spelers.php") { $pag = "spe"; id = $id; include "content_ht.php"; } elseif($page == "klasse.php") { $pag = "kla"; id = $id; include "content_ht.php"; } elseif($page == "wedstr.php") { $pag = "wed"; id = $id; include "content_ht.php"; } elseif($page == "club.php") { $pag = "clu"; id = $id; include "content_ht.php"; } elseif($page == "train.php") { $pag = "tri"; id = $id; include "content_ht.php"; } elseif($page == "transfer.php") { $pag = "tra"; id = $id; include "content_ht.php"; } } else { include "content_ht.php"; } ?>
|