okay I have it "working"
by that, I mean, there is text on my page that proves there is a cookie
and when i delete the cookie, that text changes.
how would I get it to target the background color instead of adding text to the website?
it says the text 3 times because, I have pasted it 3 times as I have 3 different backgrounds I want to allow.
zombies, human and neutral.
or can I do that in just 1 cookie?
but I still need to know how to target the background, I set the value + name of the buttons to the same value + name I have in the cookie but that doesn't work.
http://uuilliam.net/zombies
using php cookie btw, since thee background switcher is in php.
I think it is probably to do with this part of code, but I don't know how to change it to target background.
if (isset($_COOKIE["zombies"]))
echo "Welcome " . $_COOKIE["zombies"] . "!<br />";
else
echo "Welcome guest!<br />";
if (isset($_COOKIE["human"]))
echo "Welcome " . $_COOKIE["human"] . "!<br />";
else
echo "Welcome guest!<br />";
if (isset($_COOKIE["neutral"]))
echo "Welcome " . $_COOKIE["neutral"] . "!<br />";
else
echo "Welcome guest!<br />";