Forum Moderators: coopster

Message Too Old, No Replies

session folowup problem

letting chousen stysheet folow rest of the pages

         

carramba

8:41 am on Mar 1, 2004 (gmt 0)

10+ Year Member



Hi!

Sorry for the stupid subjekt, but coudn't get it better.
I want that the user can chouse the skin of the site that I do by :

**********************************************

 <?
if(empty($_GET['style'])){
$_SESSION['stylesheet'] = "master";
}
else {
$_SESSION['stylesheet'] = "jojje";
}
echo '<style type="text/css" media="all">@import
"'.$_SESSION['stylesheet'].'.css";</style>';
?>

///////

Change skin to:
<br>
<a href="?style=jojje"> Jojje</a>
<br>
<a href="?"> Default</a>
<br>
************************************************

then I use similary metod for the meniu:
************************************************


<?php
switch($_GET['page']){

case 'banner':

include('banner.html');

break;
default:

include('main.php');
}
?>


///////

<a href="?page=banner">Banner</a>

************************************************

well abbiosly it don't work... whats heppends is that when I change skin to jojje and click om banner link the banner page is getting loadet but made skin choise disappears ....

so please can somebody help my to get to follow upps to work!
getting desperate....

thanx in advance

carramba

5:13 pm on Mar 1, 2004 (gmt 0)

10+ Year Member



solvt