Re: Undefined Variable
| From: | Hannes Magnusson | Date: | Sat, 29 Sep 2012 20:58:26 +0000 |
| Subject: | Re: Undefined Variable | ||
| References: | 1 | Groups: | php.webmaster |
| Request: | Send a blank email to php-webmaster+get-14785@lists.php.net to get a copy of this message | ||
On Fri, Sep 28, 2012 at 3:14 AM, Eben Ezer Sinaga <low.4ng3r@gmail.com> wrote:
> Hello Mr. /Mrs./Ms. Webmaster, I'm Eben Ezer Sinaga from Indonesia, I'm
> sorry to bother you..
>
> I have html link like this : <a
>
> href=http://localhost/test/index.php?page=1&experience=0>My
> Text</a>
>
> and my php is : $experience = $_GET['experience'];
>
> but I have found notice says:
> *Notice*: Undefined index: experience in C:\xampp\htdocs\test\index.php on
> line 4
>
> I conclude that if I set my 'experience' value to *0* it means my
> $_GET['experience'] come to undefined variable!
> Is it true???
>
> Can you give me an explanation how to get *0 *value from my url, I
> desperately need it to run my program??
>
> Thanks Mr. /Mrs./Ms Webmaster for your attention...
> *sorry I'm not good in English....
This is not a support list, sorry. Please have a look at http://php.net/support
-Hannes