header problem

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
DoppyNL

Post by DoppyNL » Tue Aug 20, 2002 11:42 pm

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

Jay

Re: header problem

Post by Jay » Wed Aug 21, 2002 3:07 am

Try switching the lines around:

Code: Select all

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

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests