Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(preg_match("^([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$", $_POST['email']) == 1){
- // "^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.(([0-9]{1,3})|([a-zA-Z]{2,3})|(aero|coop|info|museum|name))$"
- $errors['email'] = "<p class='error-message'>Please enter a valid email address</p>";
- }
- ?>
Add Comment
Please, Sign In to add comment