I'm trying to set up a CSS Switch and I can't work out where I've gone wrong or why it isn't working. In my index page I have the following PHP script to refrence the CSS script:
href="<?php echo (!$style)?'blue':$style ?>.css">
and links at the bottom for the colours <a href="changecol.php?c=twuk">TWUK</a>
I then have a changecol file which has the following PHP set at the top.
setcookie ("style", $c, time()+31536000);
header("Location: $HTTP_REFERER");
I either get the index page without any changes or it just sticks on the changecol page. Anybody got any ideas?