Hi All,
Firstly I would like to appologies if my questions have allready been covered, but I have read as much as I could on cookies and can't seem to find what I need.
Basically I have designed a website where people can submit info about their websites and what I would like to do now is to allow visitors to the site the ability to rate the link. I have the rateing bit working but would like to restrict the visitor to only one vote per visit. I am able to set the cookie and retrieve the cookie and if I have allready voted for that link, I am able to stop from voting again.
The problem I have is that when I then vote for another link the cookie value is then changed (at this stage the value of the cookie is set by the link id as a variable).
I then decided to name the cookie with the link id, but I cant work out how I then add the variable i.e. the link id variable when I check the cookie,e.g.
how would I do this - $_COOKIE['ADD THE LINK ID VARIABLE IN HERE'];
I hope I have made sence.
Maybee thi isn't the way I should be doing it, maybee I should be using array when I name the cookie, which I have tried and can do, but again, I am not sure how to retrive the cookie named by the variable.
Thanks in advance
Dill