Re: weird php error

From: Date: Fri, 29 Aug 2003 08:26:21 +0000
Subject: Re: weird php error
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-30218@lists.php.net to get a copy of this message
Try: if ($_GET['login'] == 'forgot') ----- Original Message ----- From: "OpenSource" <redhat@opensource.bz> To: <php-db@lists.php.net> Sent: Friday, August 29, 2003 7:38 AM Subject: [PHP-DB] weird php error > Hi guys, > > This is weird to me.. > I got this script > --------------------------------------------------- > <?php > > if ($_GET[login] == 'forgot') > { > echo "Sorry I forgot my password"; > } > else { echo "you are good to go"; } > > ?> > ------------------------------------------------- > when ran, it gives me this error > > ------------------------------------------------ > Notice: Use of undefined constant login - assumed 'login' in > G:\Inetpub\wwwroot\test\index.php on line 3 > > Notice: Undefined index: login in G:\Inetpub\wwwroot\test\index.php on > line 3 good to go > > What is this all about? > The script look fine to me. > > Thanks in advance for your support > >

« previous php.db (#30218) next »