<Original message>
From: Jeb Anderson Scarbrough <[EMAIL PROTECTED]>
Date: Thu, Sep 20, 2001 at 09:46:13AM -0400
Message-ID: <[EMAIL PROTECTED]>
Subject: [PHP] if statement

> This seems to be a simple questions, but it is baffling me for some reason.  
> How do I create an if statement with multiple conditions. For example, I 
> cannot get either of these to work correctly:
> 
> if(isset($REMOTE_USER) && $AUTH_TYPE='securid') {
>      // do something
> } else {
>      // do something else
> }
> 
> OR
> 
> if((isset($REMOTE_USER)) && ($AUTH_TYPE='securid')) {
>      // do something
> } else {
>      // do something else
> }
> 
> 
> Thanks.

</Original message>

<Reply>

I think your problem isn't really the if-statement itself. You
should use == io =. So it would be:

if(isset($REMOTE_USER) && $AUTH_TYPE=='securid') {
                                    ^^
                                    ^^

</Reply>

-- 

* R&zE:


-- »»»»»»»»»»»»»»»»»»»»»»»»
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM  HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
-- ««««««««««««««««««««««««

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to