Re: undefined var in php
am 05.12.2005 19:06:11 von Kimmo Laine
"Arthur Knopper" kirjoitti
viestissä:43947fea$0$37555$dbd43001@news.wanadoo.nl...
> Hello,
>
> I installed easyphp, everything seems to be working ok.
> now i entered this script:
>
>
>
>
>
>
>
> You typed:
>
>
> echo ($username);
> ?>
>
>
>
> and i am getting this error:
>
> Notice: Undefined variable: username
>
> what am i doing wrong?
Not a day goes by without someone asking this same thing. For Pete's sake,
where do you people find these crappy example codes? This has been a known
issue for such long time now... Okay, simply: replace $username with
$_GET['username'] and read php.net/register_globals to learn why.
--
SETI @ Home - Donate your cpu's idle time to science.
Further reading at
Kimmo Laine