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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux