Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001092

Re: [PHP] if statement From: * R&zE: (renze <email protected>)
Date: 09/20/01

<Original message>
From: Jeb Anderson Scarbrough <jebscarbrough <email protected>>
Date: Thu, Sep 20, 2001 at 09:46:13AM -0400
Message-ID: <F27ohvTMGz1iD0CWlto0000260f <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: renze <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: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>