newbie cookie problem

From: Date: Fri, 28 Jul 2000 15:31:08 +0000
Subject: newbie cookie problem
Groups: php.general 
Request: Send a blank email to php-general+get-8796@lists.php.net to get a copy of this message
Hi, I can't get a cookie dropped onto my machine by executing the following code. I can echo back $cart_id no problem, but the cookie doesn't show up. Thanks! <? require("config.ini"); if(!isset($cartID)) { // generates cart id number $cart_id = md5(uniqid(rand())); SetCookie("cartID",$cart_id,time()+3600,"/","$SERVER_NAME"); } echo "<form><input name=\"cartID\" type=hidden value=\"$temp_cart\"></form>"; ?>

« previous php.general (#8796) next »