Re: unset($_GET['i'])
| From: | Wolf | Date: | Thu, 04 Sep 2008 20:27:43 +0000 |
| Subject: | Re: unset($_GET['i']) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-279526@lists.php.net to get a copy of this message | ||
---- Bill <billlab51@hotmail.com> wrote:
> Dan Shirah a écrit :
> > How about just adding a simple counter on your page.
> >
>
> That's what I do but that "counter" resets when you press F5 and is not
> functionnal.
>
> Why $_GET['i'] doesn't unsets ?
Because you get a new i from the URL, hence the GET
What you can do is set a session variable when you GET the first i, then just check and if the
session variable is present, you don't process the next time you GET i.
Wolf