Greetings, Another problem with PHP trying to make a simple comparison and failing...
This works: $iQty = -1; if ( isset($g_aForm["qty_$iKey"]) AND is_numeric($g_aForm["qty_$iKey"]) ) $iQty = $g_aForm["qty_$iKey"]; But this does not: $iQty = ( isset($g_aForm["qty_$iKey"]) AND is_numeric($g_aForm["qty_$iKey"]) ? $g_aForm["qty_$iKey"] : -1); Explain... Thanks, Matthew -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]