How to use multiple cookie statements

From: Date: Mon, 12 Jul 2004 19:14:20 +0000
Subject: How to use multiple cookie statements
Groups: php.general 
Request: Send a blank email to php-general+get-190274@lists.php.net to get a copy of this message
aHere is my code... <? setcookie("cookie[name]","$_POST['name']", time()+86400) setcookie ("cookie[email]","$_POST['email']", time()+86400) setcookie ("cookie[bgcolor]","$_POST['bgcolor']", time()+86400) setcookie ("cookie[tcolor]", "$_POST['tcolor']", time()+86400) ?> I have to use cookies, since I am taking a class and it dictates that we use cookies, but I can't email my instructor since she never responds. So how do I use a cookie to record multiple values? Help would be appreciative.a

« previous php.general (#190274) next »