Thread: 'OR' statement
View Single Post
Old 03-28-2004, 11:43 PM   #4 (permalink)
Epsilon
Regular Contributor
 
Epsilon's Avatar
 
Join Date: Mar 2003
Location: Las Vegas, NV
Posts: 131
Epsilon is on a distinguished road
If I'm not mistaken, couldn't it be simplified to this?
Code:
if(!$_POST[DisplayPhone]){...}
This will evaluate to true if $_POST[DisplayPhone] is 0 or an empty string, and false otherwise.
__________________
--Epsilon--
Epsilon is offline   Reply With Quote