myfayt
12-13-2010, 07:01 PM
Is there any reason for why this isn't working? It should be
IF contype is equal to Question, AND question2 is blank, OR answer1 is blank, OR answer2 is blank, etc.
I need to see if contype is question, and need to see if any fields are blank. But it isn't accepting it.
if (($contype == 'question') && $question2 == '' || $answer1 == '' || $answer2 == '' || $answer3 == '' || $answer4 == '' || $answer5 == '' || $answer6 == '' || $answer7 == '' || $answer8 == '') {
IF contype is equal to Question, AND question2 is blank, OR answer1 is blank, OR answer2 is blank, etc.
I need to see if contype is question, and need to see if any fields are blank. But it isn't accepting it.
if (($contype == 'question') && $question2 == '' || $answer1 == '' || $answer2 == '' || $answer3 == '' || $answer4 == '' || $answer5 == '' || $answer6 == '' || $answer7 == '' || $answer8 == '') {