i have set up a skinning system based around cookies, which has a page that changes the cookie when a user requests and sends them either to the page they were on, or the index, depending on "location" being set
<?
$skin = $HTTP_GET_VARS["newskin"];
setcookie ("illbeetch", $skin ,time()+630000, 0);
if(!isset($location)) {
header($_SERVER['HTTP_REFERER']);
} else {
header("Location:http://localhost/ill-behaviour2/content/home.php");
}
?>
the problem is however when i try to send skin by
content/changecookie.php?location=1&newskin=' + skin
which encodes to
content/changecookie.php?location=1&newskin=2
the cookie is for some reason set to 0
i would greatly appreciate any help