[thelist] OR statement too true in PHP

Joel D Canfield joel at spinhead.com
Sun Mar 28 16:16:29 CST 2004


Any idea why this statement evaluates to TRUE when $_POST[DisplayPhone]
is 9876543210 ?

  if (($_POST[DisplayPhone] == 0) OR ($_POST[DisplayPhone] == "") OR
is_null($_POST[DisplayPhone]))

thanks

spinhead


More information about the thelist mailing list