Hi there,
I have a problem running a php css switcher script. Although i followed the instructions exactly as they are written in " it doesn't work.
Details - [My test site is www.goalit.gr]
1. I have put in the index.html file the codes:
a) HEAD:
<link rel="stylesheet" type="text/css" media="screen" title="User Defined Style" href="<?php echo (!$sitestyle)?'first':$sitestyle ?>.css" />
b) BODY:
<a href=" FIRST style!</a>
<a href=" SECOND style!</a>
2. The switcher.php file is:
<?php
setcookie ('sitestyle', $set, time()+31536000,'/', 'goalit.gr', '0');
header("Location: $HTTP_REFERER");
?>
3. The css files are named first.css and second.css
Does anybody has an idea.
Thank you
I have a problem running a php css switcher script. Although i followed the instructions exactly as they are written in " it doesn't work.
Details - [My test site is www.goalit.gr]
1. I have put in the index.html file the codes:
a) HEAD:
<link rel="stylesheet" type="text/css" media="screen" title="User Defined Style" href="<?php echo (!$sitestyle)?'first':$sitestyle ?>.css" />
b) BODY:
<a href=" FIRST style!</a>
<a href=" SECOND style!</a>
2. The switcher.php file is:
<?php
setcookie ('sitestyle', $set, time()+31536000,'/', 'goalit.gr', '0');
header("Location: $HTTP_REFERER");
?>
3. The css files are named first.css and second.css
Does anybody has an idea.
Thank you