Created
October 3, 2021 12:35
-
-
Save Octagon-simon/04bcb3a95cf2c6e83208d8eae89afb66 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if ($_POST){ | |
| $fields = [ | |
| "fname" => "First Name", | |
| "lname" => "Last Name", | |
| "email" => "Email" | |
| ]; | |
| //call the function | |
| if (checkFormFields($fields, false) == 1) { | |
| echo "one or more fields are empty"; | |
| } else { | |
| echo "No field is empty"; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment