Hello everybody!
I've got a problem with deleting my cookies.
I have like this.
cookie_modell[0] = caddie
cookie_modell[1] = skinner
cookie_modell[2] = Glady
And I write them out with a loop in a HTML-form.
Like:
Caddie
Skinner
Glady
Beside every name I have a deletebutton.
In the "delete-code" I use
unset ($cookie_modell[$number]);
.
(I attach a "type ="hidden"-variable to every form with $number)
My problem is that if I try to delete Skinner it deletes Glady and so on. It always removes the last name...
Is there anyone who knows what I'm doing wrong? When I think about this problem it seems easy but I can't get it to work...Just ask if you need more info.
Best regards
/Emil Hansson