Guest User

Untitled

a guest
Oct 17th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. if(preg_match('/^([a-z0-9_.-]+)@([a-z0-9_.-]+).([a-z.]{2,6})$/i', $email)===1){
  2. $userData['email']=$email;
  3. }else{
  4. $userData['email']='ОШИБКА';
  5. }
  6.  
  7. if (in_array('ОШИБКА', $userData,true)){
  8. header('location : http://127.0.0.3/sit.my/MY_DZ/ANT/');
  9. echo "<h1>".'ERROR 460'."</h1>";
  10. }else{
  11. (new Addusers($userData))->save();
  12. };
Add Comment
Please, Sign In to add comment