1
hi there
i wrote a css switcher for my new themes but it wont work.maybe i missed something?
here it is
in the head of my theme i got
<link rel="stylesheet" type="text/css" media="screen" href="<{php}> echo (!$sitestyle)?'http://mysite.com/themes/mytheme/style':$sitestyle <{/php}>.css" />
in the body
<a href="http://mysite.com/themes/mytheme/switcher.php?set=style2">Style2a>
switcher.php contains
('sitestyle', $set, time()+31536000, '/', 'mysite.com', '0');
header("Location: $HTTP_REFERER");
?>
the both css style.css and style2.css are located in my theme folder.
when i click the link the site is refreshing but the style isnt changing.
i hope you can help me.ive tried to replace "set=style2" with "set=http://mysite.com/themes/mytheme/style2" but no changes.
thanks in advance