Hello,
This is a reply to an e-mail that you wrote on Sun, 10 Aug 2003 at
00:24, lines prefixed by '>' were originally written by you.
> This may be a stupid question, but I'm trying to set up a system
where
> I can
> take a poll from visitors to my website and then set a cookie so
that
> they
> c
--- Liam Gibbs <[EMAIL PROTECTED]> wrote:
> Does it have to be a cookie? I use the IP address and store
> that somewhere.
Please don't. An IP address is a terrible means of user identification.
I would explain why, but I think it would be more informative to search through
the archives, as previo
> This may be a stupid question, but I'm trying to set up a system where I
can
> take a poll from visitors to my website and then set a cookie so that they
> can't vote more than once (until they clear their cookies at least).
> Problem is, I don't want to put it at the top of my page, because what
This may be a stupid question, but I'm trying to set up a system where I can
take a poll from visitors to my website and then set a cookie so that they
can't vote more than once (until they clear their cookies at least).
Problem is, I don't want to put it at the top of my page, because what if
some
On Sunday, August 10, 2003, at 01:36 PM, Liam Gibbs wrote:
Does it have to be a cookie? I use the IP address and store that
somewhere.
Liam, please don't advise relying on the IP address for anything. It's
been discussed to death on the list before, but in short, the
highlights are:
1. users
>There are two ways round your problem...
>
>1. Set your cookie right at the top of the script, so as your first line
>have something like: if(isset($_POST['vote'])){ setcookie(); }
>
>2. Use output buffering, this will make PHP buffer all of your content
>and not send it till you tell it to (o
for that
given vote.
Jim Lucas
- Original Message -
From: "Matthew Koh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 09, 2003 4:22 PM
Subject: [PHP] Simple cookie question
> This may be a stupid question, but I'm trying to set up a sy
7 matches
Mail list logo