I'm trying to use the following:
switch($new_t1)
case "D","W":
if ($new_p1<1 OR $new_p1>30) {
$t1_errMsg = "The number of billing cycle days/weeks must be between 1 and 30";
}
break;
but received an error stating, "unexpected T_CASE, expecting ':' or '{' "
I assume case "D","W": is what's causing the problem. Do I have to treat these as separate case statements? If so, it seems rather inefficient.