Jump to content

Simple IF $_COOKIE['bla bla'] ?


Gayner

Recommended Posts

setcookie("skinid", 5, time()+60*60*24*60, "/");

 

I will use that,

 

But..

 

 

now i want to make it so

 

if $_COOKIE['skinid'] == "5"

 

echo bla bal

 

is that correct way?

Will this work for every individual user?

 

Cause i'll make a get function so that user clicks on button and changes skinid in cookie, like changing theme. :-)

Link to comment
https://forums.phpfreaks.com/topic/182534-simple-if-_cookiebla-bla/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.