cookie in
Posted: Mon Mar 10, 2003 1:51 pm
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";
?>
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";
?>