RE: [PHP] incrementing cookie
| From: | George Pitcher | Date: | Wed, 14 Sep 2005 13:54:20 +0000 |
| Subject: | RE: [PHP] incrementing cookie | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-222393@lists.php.net to get a copy of this message | ||
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 the cookie.
Just my 2p.
George