HiI'm trying to let the user choose his own background color. I've placed a little .gif with hotspots on one page. From there I link to a 'mood.asp' page, where I'd like to pass on different variables. So, for color 1, I'd use the link: mood.asp?mood=1
In the mood.asp I've got the following code, but for some reason this just does not work.
<% dim vbgcolor
Select case ::mood::
case 1
vbgcolor = "#F4D9FF"
case 2
vbgcolor = "#F2F9FF"
End Select
response.Cookies("mood")("bgcolor") = vbgcolor
response.Cookies("mood").Expires = DateAdd("m",1,Date)
%>
First I tried the same thing without the case, and it worked using the cookie. But there must be something wrong with the case statement...
Any help highly appreciated!
Matthias