This question already has an answer here:
I have some variables which may sometimes be empty and sometimes they may not be...what is the best way to prevent these errors from occurring?
Notice: Undefined variable:
$results = searchOrders($_GET['search'], $_GET['criteriaId'], $_GET['dateEntered'], $_GET['state']);
Anyone of the $_GET can be empty at any time. So the error would pop up a lot
</div>