Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. if ( isset($_POST[$formName]) ) {
  2.  
  3. $user = trim(htmlentities($_POST['user']));
  4. $email = trim(htmlentities($_POST['email']));
  5.  
  6.  
  7. if (empty($user) && empty($email)) { // check that the form field is not empty
  8. $msg = $error['blank_fields'];
  9. }
  10.  
  11. if (!$msg && checkEmail($email) == FALSE ) { // check the email
  12. $msg = $error['email_invalid'];
  13. }
  14.  
  15. //...
  16. //...
  17.  
  18. if (!$msg) {
  19. $msg = 'awesome';
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement