Forum Moderators: coopster
<?php
if(isset($HTTP_COOKIE_VARS['var'])){;
$var = $HTTP_COOKIE_VARS['var'];
}else{
$var = default_value;
}
?>
This will also prevent the error you would get trying to assign the cookie value that might not exist to a var.
JAG