php-general | 2001092
Date: 09/20/01
- Next message: Stig Venaas: "Re: [PHP] Generating UTF Files"
- Previous message: Tim: "Re: [PHP] if statement"
- In reply to: Jeb Anderson Scarbrough: "[PHP] if statement"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
<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>
- Next message: Stig Venaas: "Re: [PHP] Generating UTF Files"
- Previous message: Tim: "Re: [PHP] if statement"
- In reply to: Jeb Anderson Scarbrough: "[PHP] if statement"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

