$_GET & $_SESSION conflikt?
From: carramba (carramba_at_bootre.com)
Date: 03/05/04
- Next message: R. Rajesh Jeba Anbiah: "Re: Python as replacement for PHP?"
- Previous message: Kelly: "Re: Open the source of an html across the net"
- Next in thread: Dmitry Ruban: "Re: $_GET & $_SESSION conflikt?"
- Reply: Dmitry Ruban: "Re: $_GET & $_SESSION conflikt?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 4 Mar 2004 23:22:34 -0800
Hi!
Tahnx for taking time and reading!
This script should load default page and default style***, but its
only loads default page, you have to actualy click on the style link
to load style...
but I dont understand why! It started when I "compresed" script and
addet $_GET['page'] in the same "if" set... but it shoudent by eny
problem...
**************************
if (empty($_GET['style']) && ($_GET['page'])) {
if (!isset($_SESSION['style***']) && !isset($_GET['page'])) {
$_SESSION['style***'] = 'master';
}
} else {
$_SESSION['style***'] = $_GET['style'];
$_GET['page'] = 'main';
}
$mainBODY = file_get_contents(str_replace(" ",
"%20",$_GET['page'].'.php'));
echo '<style type="text/css" media="all">@import
"'.$_SESSION['style***'].'.css";</style>';
**********************************
thanx for helping out
Carramba
- Next message: R. Rajesh Jeba Anbiah: "Re: Python as replacement for PHP?"
- Previous message: Kelly: "Re: Open the source of an html across the net"
- Next in thread: Dmitry Ruban: "Re: $_GET & $_SESSION conflikt?"
- Reply: Dmitry Ruban: "Re: $_GET & $_SESSION conflikt?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]