header problem

A

Anonymous

Guest
http://www.php.net/manual/en/reserved.variables.php

you have to acces $done with $_COOKIE['done'] or $_REQUEST['done']
(read the manual page and you'll understand)

Greetz Daan
 
Try switching the lines around:

Code:
if($done!=1)
{
	setcookie("cookie_1", "test");
	header("Location:$PHP_SELF?done=1");
}
else
{		
	header("Location:http://ejmen.com/dealer/index.php");
}
 
Back
Top