Re: why is this SIMPLE elseif not firing?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Oops, clearly too early in the morning to be looking at code. Sorry.

-Stuart

2009/7/16 Stuart <stuttle@xxxxxxxxx>:
> 2009/7/15 Govinda <govinda.webdnatalk@xxxxxxxxx>:
>> Sorry this is isn't good 'ninja' material..  but I gotta start where I am.
>>
>> this:
>>
>> echo 'is set (EditExistingClient) ='. isset($EditExistingClient)."<br />\n";
>> is returning:
>> is set (EditExistingClient) =1<br />
>>
>> but this, later down the page:
>> elseif ((isset($EditExistingClient)) || ($CreateClient)) //we just created a
>> client, OR edited a client
>> {
>> echo '<input name="EditExistingClient" type="submit" value="Edit This
>> Client">'."\n";
>> }
>>
>> is not firing unless $CreateClient is set.
>>
>> This, too, is not firing when I think it should:
>> elseif (($EditExistingClient) || ($CreateClient)) //we just created a
>> client, OR edited a client
>> {
>> echo '<input name="EditExistingClient" type="submit" value="Edit This
>> Client">'."\n";
>> }
>>
>> what ridiculously simple thing am I missing?
>
> The only possibility I can see is that $EditExistingClient is getting
> modified between the echo and the first elseif statement.
>
> -Stuart
>
> --
> http://stut.net/
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux