You are here: Assigns True but not false? « PHP « IT news, forums, messages
Assigns True but not false?

Posted by Gabe on 12/06/05 19:38

In this if statement, if the condition is true, then it will assign true
to the array (as I want it to). If the condition evaluates to false, it
assigns nothing. Any idea why it won't assign false? If I switch the
FALSE boolean value to the number 0, that will get assigned. Seems
kinda strange...

$this->m_arrQuesInfo[$this->m_itemID]['blnVacPromo'] = ( (
!empty($_POST['vac_promo']) ) && ( $_POST['vac_promo'] == 'on' ) ) ?
TRUE : FALSE;

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация