Re: weird php error

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

 



try

if (isset($_GET['login']) AND $_GET['login'] == 'forgot')
KD

On Fri, 29 Aug 2003, Tiberiu Ardeleanu wrote:

> 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:  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
>

-- 
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