Hi,
I have the following code in a file being included onto every one of my pages.
<?
session_start() ;
if(!isset($colour)) {
$colour = "green" ;
}
if($colour=="green") {
$imgdir = "./images/green/" ;
$darkcolour = "#002409" ;
$pagebg = "#056340" ;
}
if($colour=="blue") {
$imgdir = "./images/blue/" ;
$darkcolour = "#061F2D" ;
$pagebg = "#0F4360" ;
}
session_register("colour") ;
?>
if I comment out the session_register - the site colour changes fine, but of course it doesnt remember the colour for when you next click on a link.
but when the session_register is there, the site won't change colour.
the links i have are <?=$PHP_SELF?>colour=blue and <?=$PHP_SELF?>colour=green
could anyone help be in telling me why this could be happening?
Thanks
Ben