I have a form used to void, dismiss, amend and correct citations. A void can not be done in conjucntion with a dismissal, amendment, or correction. If you need to void and amend, you complete two forms. You can however do a dismissal, amendment and/or correction on the same form. I have two arrays created based on the variables from the form. One array has the variables from the void section, the other array has all the other variables.
I am trying to create a rule that compares the void to all others. I want to be able to check if any void variables are != "" and any of the other variables are != "" and then give an error message.
if($_POST[$all_other_fields] !== "" && $_POST[$void_fields] !== "")
{
$all_ok = false;
$citation_error_msg = "Blah, Blah Blah";
}
What I have done, unwittingly, is stated ALL varriables from both arrays must != "". I want to say if even one variable from both arrays != "", then error message.
I am not sure how to make the comparison.