Re: unset($_GET['i'])
| From: | Bill | Date: | Fri, 05 Sep 2008 00:15:07 +0000 |
| Subject: | Re: unset($_GET['i']) | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-279538@lists.php.net to get a copy of this message | ||
Not using GET means rewriting all the pages. Ok then I'll use a session variable. Thanks you all.Why $_GET['i'] doesn't unsets ?Your page URL has ?i=asdf in it. As such, $_GET['i'] is being set every time you refresh that particular URL. Unsetting $_GET['i'] will only erase the variable for that instance of that PHP script. As soon as you refresh, you are calling a new instance of that PHP script and assigning $_GET['i'] the value "asdf" (or whatever).