I want a cookie that can have about 5 values. I was told to do something
like this:
to set the cookie the first time:
setcookie("ques tions[]",$_POST['questionid'],time()+60*60*2 4,"/","",0);
then to add valus to this cookie later:
setcookie("ques tions[]",$_POST['questionid']);
the problem is that when I do this, the cookie's first value is just getting
replaced over and over again.
How do I handle a cookie so I can just keep pushing values on to it n times
so that at the end I have an array with n values??
--
Alexander Ross
alexross@bleen. net
like this:
to set the cookie the first time:
setcookie("ques tions[]",$_POST['questionid'],time()+60*60*2 4,"/","",0);
then to add valus to this cookie later:
setcookie("ques tions[]",$_POST['questionid']);
the problem is that when I do this, the cookie's first value is just getting
replaced over and over again.
How do I handle a cookie so I can just keep pushing values on to it n times
so that at the end I have an array with n values??
--
Alexander Ross
alexross@bleen. net
Comment