I'm trying to use PHP to allow the users of my website bungo.co.uk to choose a stylesheet, and as I don't know what I'm doing, I used an example script mezzoblue.com/zengarden/faq/switcher-php.txt]script from mezzoblue.com. The script to handle the stylesheets is working fine, and I've been using "pagetwo.php?cssfile=<?php echo $loadCSS; ?>" to link between pages once the style has been selected.
My problem is that once the user has selected a style and gone to another page, the stylesheet variable seems to expire. I've been testing this at piggah.net[/URL] if you want to take a look, I'm not too good at explaining things!
I was wondering if anyone knew a way to keep the stylesheet variable active for longer.
Oh, and just to be fussy, I'm really trying to avoid using Javascript and cookies, but if there's no other way around it then I guess they'll suffice.
Sorry if that didn't make sense, I'm completely new to PHP.
Thanks in advance,
Sam
My problem is that once the user has selected a style and gone to another page, the stylesheet variable seems to expire. I've been testing this at piggah.net[/URL] if you want to take a look, I'm not too good at explaining things!
I was wondering if anyone knew a way to keep the stylesheet variable active for longer.
Oh, and just to be fussy, I'm really trying to avoid using Javascript and cookies, but if there's no other way around it then I guess they'll suffice.
Sorry if that didn't make sense, I'm completely new to PHP.
Thanks in advance,
Sam