Kód: Vybrať všetko
//do_menu8.php
session_start();
$content = "test";
$_SESSION['content'] = $content;
$absurl = "http://".$_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"];
$GoTo = "Location:".$absurl;
header($GoTo);
Kód: Vybrať všetko
//index.php
include("GlobalData.inc.php");
include("xhtmlHead.inc.php");
include("$language/".$content.".php");
include("xhtmlFoot.inc.php");
Kód: Vybrať všetko
//GlobalData.inc.php
session_start();
if (!isset($content)) {
// Startup page is home.php
// Štarovacia strana je home.php
$content = "home";
$_SESSION['content'] = $content;
}
Zatiaľ to riešim tak že premennú $conntent nastavím ešte v odkaze...
(čiže nefunguje prenos premennej $content cez session)
Kód: Vybrať všetko
session_start();
$content = "kontakt";
$_SESSION['content'] = $content;
$absurl = "http://".$_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"];
$GoTo = "Location:".$absurl."/index.php?content=".$content;
header($GoTo);