|
Posted by Sentinel on 10/07/05 11:07
Obvious 06.10.2005 16:57:25
<14tr6a3bouj16$.1bf8au4p8tchj.dlg@40tude.net> Obvious@godhelpme.com
alt.php Obvious
> On Thu, 6 Oct 2005 10:22:00 +0200, Sentinel wrote:
>
> > How do i create cookies with php?
> > allso, how can i read cookies and eventualy delete them?
> >
> > i have created a pool and the problem is that anyone can vote until
> > their finger gets tired and i want to prevent then from voting more
> > then once.
> >
> > i found a script on google but it doesn't work (eather id doesn't
> > create a cookie, or it can't read the cookie)
> >
> > the main thing is thet on one page there will be several pools and i
> > have to be able to create a cookie for each one seperatly.
> >
> > Thanks
>
> http://uk2.php.net/manual/en/function.setcookie.php
when creating a cookie a do
setcookie("pool".$_GET['pid',"voted",time()+5184000,"/new/",
"www.elma.hr",1)
when i read the cookie
if ($_COOKIE["pool".$rpool{'pool_id'}]) {}
else {}
it is allways false
so problem is with setting a cookie
--
Will work for bandwidth!
[Back to original message]
|