RE: [PHP] incrementing cookie

2005-09-14 Thread George Pitcher
Hi, > if (isset($add)) { > $pakora++; > setcookie("cookie[pakora]", "$pakora Pakora"); > } If I'm not mistaken, you also need to be sure that you are writing your script to html/display and not redirecting to another page after the cookie has been set - as redirecting will not write t

Re: [PHP] incrementing cookie

2005-09-14 Thread Jochem Maas
rement the value of $pakora by 1 evert time . thanks again, Ross - Original Message - From: "Jochem Maas" <[EMAIL PROTECTED]> To: "Ross" <[EMAIL PROTECTED]> Cc: Sent: Wednesday, September 14, 2005 1:57 PM Subject: Re: [PHP] incrementing cookie Ross

Re: [PHP] incrementing cookie

2005-09-14 Thread Jochem Maas
Ross wrote: Hi, I want to increment a cookie by 1 every time a click a button if (isset($add) { $number++; setcookie("cookie[number]", "$number Is the number") } I know I should retireve the cookie value for $number but the problem is it has 2 bits, a number and a bit of text. in your cas