weird php error

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

 



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
 

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

  Powered by Linux