Re: Nested IFs Problem

From: Date: Wed, 31 Aug 2005 20:29:40 +0000
Subject: Re: Nested IFs Problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-221668@lists.php.net to get a copy of this message
Albert Padley wrote:
Whenever the 3 if statements are true, I always get the correct "Success" to echo. However, if any or all of the if statements are false, I never get "Failed" to echo. I know it's something simple, but I just can't see it at the moment.
The code is doing exactly what you told it to do. To make it do what you what you seem to want it to do, get rid of the nested IFs and place all three tests within a single IF. -- == Eric Gorr =============================== http://www.ericgorr.net === "Government is not reason, it is not eloquence, it is force; like fire, a troublesome servant and a fearful master." - George Washington == Insults, like violence, are the last refuge of the incompetent... ===

« previous php.general (#221668) next »