On Tue, 18 Sep 2001 17:43:27 +0900, Karina Nahagama wrote:

>The if sentence is written as follow:
>    if ($Login = 'FALSE'){$Login ='<BR> Unable to login';}
>    if ($Login = 'TRUE'){$Login ='<BR> Welcome <BR> ';}
>
>The if/then sentence is written as follow:
>    if ($Login = ' '){
>                     $Login ='<BR> <BR> Unable to login';
>    } else {
>            print '<BR> Welcome';
>    }

Use "eq" instead of plain and simple "="  in your test. Now you're
assigning a value and then testing for the truth of this (constant)
value.

If you would have been running with warnings enabled (a pain under CGI,
I know), it could have wared you about that.

And no, this is neither a DBI nor a mod_perl problem.

-- 
        Bart.

Reply via email to