PHP de biraz acemiyim :)
if (isset($_POST['kullanicikaydet'])) {
	
	echo $kullanici_adsoyad=htmlspecialchars($_POST['kullanici_adsoyad']); echo "
";
	echo $kullanici_mail=htmlspecialchars($_POST['kullanici_mail']); echo "
";
	echo $kullanici_passwordone=trim($_POST['kullanici_passwordone']); echo "
";
	echo $kullanici_passwordtwo=trim($_POST['kullanici_passwordtwo']); echo "
";
	if ($kullanici_passwordone==$kullanici_passwordtwo) {
		if (strlen($kullanici_passwordone)>=6) {	
// Başlangıç
			$kullanicisor=$db->prepare("select * from kullanici where kullanici_mail=:mail");
			$kullanicisor->execute(array(
				'mail' => $kullanici_mail
			));
			//dönen satır sayısını belirtir
			$say=$kullanicisor->rowCount();
			if ($say==0) {
				//md5 fonksiyonu şifreyi md5 şifreli hale getirir.
				$password=md5($kullanici_passwordone);
				$kullanici_yetki=5;
			//Kullanıcı kayıt işlemi yapılıyor...
				$kullanicikaydet=$db->prepare("INSERT INTO kullanici SET
					kullanici_adsoyad=:kullanici_adsoyad,
					kullanici_mail=:kullanici_mail,
					kullanici_gsm=:kullanici_gsm,
					kullanici_password=:kullanici_password,
					kullanici_referans=:kullanici_referans,
					kullanici_yetki=:kullanici_yetki
					");
				$insert=$kullanicikaydet->execute(array(
					'kullanici_gsm' => $_POST['kullanici_gsm'],
					'kullanici_referans' => $_POST['kullanici_referans'],
					'kullanici_adsoyad' => $kullanici_adsoyad,
					'kullanici_mail' => $kullanici_mail,
					'kullanici_password' => $password,
					'kullanici_yetki' => $kullanici_yetki
				));
				if ($insert) {
					header("Location:../uye/kayitol.php?durum=loginbasarili");
				} else {
					header("Location:../uye/kayitol.php?durum=basarisiz");
				}
			} else {
				header("Location:../uye/kayitol.php?durum=mukerrerkayit");
			}
		// Bitiş 
  

 
                    