Hi,
Why does this give an error? setcookie("user["linecolor"]", $linecolor);
I know I could do this: setcookie("user[3]", $linecolor);
but I want to give the cookie parts sensible names.
How can I do that?
TIA, Peter.
You can't just include quote marks inside of quoted strings, you have to escape them:
setcookie("user[\"linecolor\"]", $linecolor);