<?php $array = array( 'RequestID' => 0, 'ClientName' => null, 'Username' => "\0", 'RequestAssignee' => 0.0, 'Status' => '0', 'Priority' => false, 'Extra' => '' ); $error = 0; foreach ($array as $k => $v){ if (empty($v)) { $error++; } } if ($error == count($array)) { echo '<li>Please enter a value into at least one of the fields regarding the request you are searching for.</li>'; }else{ echo 'all good'; }
You have javascript disabled. You will not be able to edit any code.