Hi!
i search but found nothing that help me.
I've got a website that, when a user login, check for cookie :
//Create Cookie
if (!isset($HTTP_COOKIE_VARS['text'])) {
setcookie("text", "11");
}
Now, each of my website page have a button and when i click on it, it's suppose to change the cookie value "11" to "13" if :
$_COOKIE["text"] = "11";
and, change cookie value "13" to "11" if :
$_COOKIE["text"] = "13";
So, at the top of all the page, i've got :
<?
session_start();
if($SESSION["activate"] != 1){
header ('location: http://www.turbulencemedia.com/m2');
}else{
//Update Text Pref Cookie
if($txt != ""){
if($txt == "11"){
$COOKIE["text"] = "13";
}else{
$_COOKIE["text"] = "11";
}
}
}
?>
Pleeeeease someone help me .... i'm very confused
turb