Re: [PHP] Using the OR operator in an IF statement

2005-01-08 Thread Jason Wong
On Saturday 08 January 2005 19:02, Tim Burgan wrote: > Can someone please correct me on my efforts below. > If I have a condition where I want to test if a variable is not equal to > "student", "staff", or "admin".. what's the simplest was to achieve that? > > Here's what I tried.. that didn't wor

[PHP] Using the OR operator in an IF statement

2005-01-08 Thread Tim Burgan
Hello, Can someone please correct me on my efforts below. If I have a condition where I want to test if a variable is not equal to "student", "staff", or "admin".. what's the simplest was to achieve that? Here's what I tried.. that didn't work: if ( ($_POST['usertype'] != "student") || ($_POST