hi,
I want to insert a cookie in php in my page - i included this in a <p> tag - however; it's not working -
where's the pb???
should I split this bunch of code or what???
help pliz...
jr
thx
_______
<?php
$visites=$visites+1;
$secondes=3600*24*366;
$date_fin=time()+$secondes;
setcookie("visites",$visites,$date_fin);
$dejavenu=$visites-1;
if($dejavenu>0);
{
echo"Nous sommes heureux de vous revoir sur notre site";
echo"<P>";
}
else
echo"bonne première visite sur Lynespace";
?>
cookie in
Moderator: General Moderators
maybe you're using a recent version of php and have to use the array $_COOKIE to access the values.
http://www.php.net/manual/de/function.setcookie.php has some examples how to do that.
http://www.php.net/manual/de/function.setcookie.php has some examples how to do that.