Re: [SPAM?] [PHP-DB] weird php error

From: Date: Mon, 01 Sep 2003 08:06:17 +0000
Subject: Re: [SPAM?] [PHP-DB] weird php error
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-30258@lists.php.net to get a copy of this message
OpenSource,
if ($_GET[login] == 'forgot')
It's good programming style (and in some cases, necessary) to use quotes around array member names: $_GET[login] is bad. $_GET['login'] is good. However, you are also not passing the "login" variable through to your login processing page. At least, that's what the error message says.
Notice: Undefined index: login in G:\Inetpub\wwwroot\test\index.php on line 3 good to go
It says that the variable "login" is not a member of the $_GET array. I'd check the name you've given to the login text entry box in your login request screen. Also, hopefully you are running PHP 4.2.0 or later, 'cos the predefined $_GET variable wasn't used before then... Peter.

« previous php.db (#30258) next »