foreach ($inputValues as $k => $v) {
                if ($v == null || empty($v) || $v == "" || removeWhiteSpace($v) == "") {
                    $emptyInputs++;
                }
            }
            // test - empty inputs
            if ($emptyInputs != 0) {
                // bad - empty inputs
                $resultArray["EMPTY_INPUTS"] = 1;
                $resultArray["MESSAGE"] = "There was a problem with your registration.  Please check to make sure you have the required information entered in the form.";
                // success - empty inputs
            } else {
                // good - empty inputs
                $resultArray["EMPTY_INPUTS"] = 0;
                // send email
                $result = EmailHelperClass::createAndSendEmail_SponsorEmail($inputValues["name"], $inputValues["email"], $inputValues["message"]);
                $resultMessage = $result ? "Success!" : "There was a problem sending a email.  Please resubmit the form.";
                // create result array
                $resultArray = array("SUCCESS" => $result, "MESSAGE" => $resultMessage);
            }
            // end - empty test
        }
        // end - addition test
    }
    // end - honeypot test
}
// end - inputs exist
// json encode array
$jsonResult = json_encode($resultArray);
// print array to screen as results
print_r($jsonResult);