フォームからアイテムの配列を追加していますが、すべてが空の場合は、検証を実行してエラー文字列に追加します。ので、私は持っています:
$array = array(
'RequestID' => $_POST["RequestID"],
'ClientName' => $_POST["ClientName"],
'Username' => $_POST["Username"],
'RequestAssignee' => $_POST["RequestAssignee"],
'Status' => $_POST["Status"],
'Priority' => $_POST["Priority"]
);
そして、すべての配列要素が空の場合は、次のように実行します。
$error_str .= '<li>Please enter a value into at least one of the fields regarding the request you are searching for.</li>';