i am trying to use a cookie in a conditional but the IF statment seems to be executed every time regardless of whether its true or not. also, this script is spse to work for visitors that have left the site and are coming back ....
<html>
<?
if ($progenic_popu = '1')
{
echo '<head><title>site.title</title>';
echo '<META http-equiv="refresh" content="1;URL=http://www.site.org/phpbb/index.php">';
echo '</head>';
} else {
$expire_progenic = time()+864000;
setcookie('progenic_popu', '1', $expire_progenic);
echo '<head><title>site.org</title></head>';
echo '<body>Created Cookied Called progenic_popup</body>';
}
?>
</html>
any ideas would be greatly appreciated