Try:

 if ($_GET['login'] == 'forgot')


----- Original Message ----- 
From: "OpenSource" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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
>  
> 

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

Reply via email to