Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $testemail = trim($_POST['cEmail']);
- //Check to make sure sure that a valid email address is submitted
- if(trim($_POST['cEmail']) == '') {
- $hasError = true;
- $errorMsg = "email brak";
- } else if (!preg_match('^[a-zA-Z0-9_.+-]+\@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z]{2,4}$', $testemail)) {
- $hasError = true;
- $errorMsg = "email zły";
- } else {
- $email = trim($_POST['cEmail']);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement