script) When I upload the script to my website, it works with out issues. I check the log for xammp and it tells me undefined variable.
The phpscript is as follow:
- Code: Select all
<?php
setcookie ('sitestyle', $set, time()+31536000);
header("Location: $HTTP_REFERER");
?>
the php code on index page is:
- Code: Select all
<link rel="stylesheet" type="text/css" media="screen" title="default" href="<?php echo
(!$sitestyle)?'defaultstyle':$sitestyle ?>.css">
<link rel="alternate stylesheet" type="text/css" media="screen" title="blue" href="blue.css">
<link rel="alternate stylesheet" type="text/css" media="screen" title="pink" href="pink.css">
</head>
<a href="switcher.php?set=default">Default</a>
<br>
<a href="switcher.php?set=blue">Blue</a>
<br>
<a href="switcher.php?set=pink">Pink</a>
as I said it works on myweb site as intended, as I get the same problem/error in logs on both xampp and MAMP, the guys over at MAMP have been no help, so your help is
greatly appreciated!
The script is basically a color changing script, the log keeps pointing to the $HTTP_REFERER in php file as the problem and the $sitestyle, what am I doing wrong?
Thanks in advance!
bill