Save cookie when clicking inside a DIV [duplicate]

0

I have a DIV, in it goes ads .. and I want you to create a cookie of 2 days .. That is, Before loading the page it verifies if it has already clicked some place of the DIV in the last 2 days, if already it clicked it something else appears instead of the ad.

But I have to catch this cookie with PHP using IF as the code below.

<?php if ($cookie === sim): ?>
  JA CLICOU
<?php else: ?>
  AINDA N CLICOU
<?php endif; ?>
    
asked by anonymous 16.10.2018 / 02:05

0 answers