note 13198 deleted from features.cookies by jimw

From: Date: Thu, 20 Dec 2001 21:19:50 +0000
Subject: note 13198 deleted from features.cookies by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-23427@lists.php.net to get a copy of this message
You can set and retrieve a cookie with a dynamic name. setcookie("product_$p", "some info", time+666, etc...); then to retrieve.. $tmp = "product_$p"; if ($dynamic_cookie = ${$tmp}) { print "found cookie $tmp = $dynamic_cookie\n"; }

« previous php.notes (#23427) next »