1
hello all ! I have a big problem, i don't know much about php, but i want to implement a styleswitcher ala ...
http://www.alistapart.com/articles/phpswitch ... but it gets me crazy last 2 days...
what i've done sofar is:
in theme.html:
and this is the switcher.php which i put in the root of that domain...
$set = $_GET['set'];
$set = preg_replace('#[^a-zA-Z0-9_-]#', '', $set);
setcookie ('sitestyle', $set, time()+31536000, '/', '.yellowbyte.com', '0');
header('Location: '.$_SERVER['HTTP_REFERER']);
?>
it works so far that i dont get a blank page
, but it don't changes path to stylesheet... he renders that php into link rel stylesheet ...but seems to forget that echo... all i get back is "domain/userstyles/style.css" but no changes when click on e.g. red ....??
someone out there with a solution ?
michael