Hi,
I trying to write a poll script. I need to be able to check whether or not a cookie is present when a user comes to the site. If the cookie is present then I read in a variable it holds. Based on this the site decides whether or not they have voted before. If they have voted before then they are shown the results if not they are given the option to vote.
I'm thinking of code similar to this...
if (cookie is not present);
{
set variable1 = 0;
}
else
{
read in variable1 from cookie;
}
I know how to read in the variable once the cookie is there it's just the initial problem of determining whether the cookie is actually present.