header problem

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
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

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
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest