Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( isset($_POST[$formName]) ) {
- $user = trim(htmlentities($_POST['user']));
- $email = trim(htmlentities($_POST['email']));
- if (empty($user) && empty($email)) { // check that the form field is not empty
- $msg = $error['blank_fields'];
- }
- if (!$msg && checkEmail($email) == FALSE ) { // check the email
- $msg = $error['email_invalid'];
- }
- //...
- //...
- if (!$msg) {
- $msg = 'awesome';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement