$capeski) { $hatavar=1; $mesaj='Verification code does not match.';}} if($hatavar==0){ if($email<>$email2){ $hatavar=1; $mesaj='Email addresses does not match.'; }} if($hatavar==0){ if($password<>$password2){ $hatavar=1; $mesaj='Passwords does not match.';}} if($hatavar==0){ if(strlen($password)<6){ $hatavar=1; $mesaj='Password must be least 6 characters.'; }} if($hatavar==0){ if(strlen($password)>12){ $hatavar=1; $mesaj='Password must be most 12 characters.'; }} if($hatavar==0){ $onceki=mysqli_fetch_assoc(mysqli_query($con,"SELECT * FROM `kullanicilar` where email='$email'")); if($onceki['kullaniciid']<>''){ $hatavar=1; $mesaj='This e-mail has been already registered. Please try another e-mail.'; } } if($hatavar==0){ mysqli_query($con,"INSERT INTO `kullanicilar` (`kullaniciid`, `email`, `sifre`, `name`, `middlename`, `surname`, `utitleid`, `instution`, `department`, `ucountryid`, `mobilephone`, `rol`, `profilfoto`) VALUES (NULL, '$email', '$password', '$name', '$middlename', '$surname', '$title', '$instution', '$department', '$country', '$mobile', 'Participant', NULL);"); $kaydedildi=1; $sonid=mysqli_insert_id(); } } ?> VJMS - Register '; } ?>