Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(preg_match('/^([a-z0-9_.-]+)@([a-z0-9_.-]+).([a-z.]{2,6})$/i', $email)===1){
- $userData['email']=$email;
- }else{
- $userData['email']='ОШИБКА';
- }
- if (in_array('ОШИБКА', $userData,true)){
- header('location : http://127.0.0.3/sit.my/MY_DZ/ANT/');
- echo "<h1>".'ERROR 460'."</h1>";
- }else{
- (new Addusers($userData))->save();
- };
Add Comment
Please, Sign In to add comment