ok, i'm using cookies and using this script, but I need to create variables for them.. ex
cookie[one] = "coookie_one";
cookie[two] = "cookie_two";
if (isset($cookie)) {
while (list($name,$value) = each($cookie)) {
$name = $value;
}
}
now i can't get HTTP_COOKIE_VARS to work, so i'm using this method.
The thing is, i need to get the values for each cookie.
How can I do that, if I echo something out after the code eg..
if (isset($cookie)) {
while (list($name,$value) = each($cookie)) {
$name = $value;
}
}
echo $one; it should print "cookie_one";
but it doesn't print anything out..
how do I assign a variable to it so it works.
if (isset($cookie)) {
while (list($name,$value) = each($cookie)) {
echo "$name = $value";
}
}
would print out a list of the $name = $value
but i don't want to echo it there, i need it to run through my php script
can someone help!