Cookie problem

From: Date: Wed, 27 Dec 2000 21:17:07 +0000
Subject: Cookie problem
Groups: php.db 
Request: Send a blank email to php-db+get-5465@lists.php.net to get a copy of this message
Okay, I need help again... Here goes: I used a loop to set the cookie name to "votecookie".$row[0].$row[6] - that works fine, I now have a lot of cookies called votecookie111, votecookie121, votecookie131 and so on. My problems are two. 1. How do I change the cookie variable? The cookie setting must be variable based, since it is in a loop. I.e. I cant set it like: $votecookie121 = true I must use something like: $."votecookie".$row[0].$row[6] = true The above is an invalid command, but if it worked it would be perfect. 2. I need to use an IF to check if the cookie is = true. The same problem applies as above, I think. I must say that PHP is a very nice language - I started learning it just a few days, and I already know it a little. Cool. Please help me out on this one, though, before I explode and die. /Mattias

« previous php.db (#5465) next »