Kris Yates wrote:
if(ereg("color-", $ThisVar) AND $ThisVal=="on" OR $ThisVal==1){
this condition reads
if( (ereg("color-", $ThisVar) AND $ThisVal=="on") OR $ThisVal==1)

It is called operator precedence.
www.php.net/manual/en/language.operators.html#language.operators.precedence
You have POST var with value of 1 somewhere before.


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



Reply via email to