Hi, I was wondering if someone could help me with the syntax for variable within a variable. For instance I want to check if a cookie exists with "yes" in it. The cookie contains variables passed from another page ($type, $id)
$cookie_check = $type . "RingV[" . $id . "]";
so in this case the $cookie_check could be: typeRingV[1]
However I don't know how to get the syntax to work so that it checks:
so that it looks like:
if ($typeRingV[1] != "Yes") {
...
}
The only thing i could think of is:
if ($$cookie_check != "Yes") {
...
}
which is obviously wrong.
Thanks.