View Single Post
Old 07-12-2002, 04:15 PM  
justsexxx
Too lazy to set a custom title
 
Join Date: Aug 2001
Location: The Netherlands
Posts: 13,723
Quote:
Originally posted by Cogitator
You need to use the same variable name as the cookie value name.

<code>
// Get and Set Cookie Data
$cokcount++;
setcookie("cokcount", $cokcount);
</code>

I am assuming you have "register_globals" on.
Hi,

I'm a real newbie programmer So I have NO idea if I have register_globals on.

I tried it with

<code>
$cokcount++;
setcookie("cokcount", $cokcount);
</code>

But it still won't work...DOes that mean register globalls if off?

Th eother suggestion was Turn globalls off and use the cookie array, but I have no idea how to do that

A lot to learn here for me

Andre
__________________
Questions?

ICQ: 125184542
justsexxx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote