Cookies - after redirecting

From: Date: Tue, 06 Nov 2001 14:32:21 +0000
Subject: Cookies - after redirecting
Groups: php.general 
Request: Send a blank email to php-general+get-73605@lists.php.net to get a copy of this message
Hi, I'm having this problem with my script, when I set the cookies and then redirect the next page doesn't read the cookies, example Page 1: ---------- <?php setcookie("item",tour); header("LOCATION: show.php"); ?> Page 2: ---------- <?php echo $item; ?> That doesn't print anything,, but if I eliminate the header and place a manual link, it does work, any idea? <?php setcookie("item",phone); // header("LOCATION: show.php"); echo "<a href='tour.php'> Show Basket </a>"; ?> Page 2: ---------- <?php echo $item; ?> thanks..

« previous php.general (#73605) next »