Checking Form Data & Error Messages

and like us on FB

When validating form input, create a unique key and value pair with an associated error message. If, after evaluating all the input, the error array isn’t empty, iterate over the array and print the errors.