incrementing cookie

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


Thanks,

Ross 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux