Hoşgeldin Misafir

Destek Talebi Selamlar kayıt ol php yönlendirme sorunu hk yardım

carpiciyim

İstanbul
7 Haz 2018
865 Mesaj

Aktiflik

Seviye

Deneyim

TIM / GÖREV:
selam arkadaşlar elimde bir kayıtol.php dosyası var altdaki forumlar filan çalısıyor lakin kayıt olduktan sonra yöblendirmesi gereken üye onay sayfasına yonlendirmiyorum kayıt oluyor ama onay sayfasına geçmiyor kod blogunu aşağıya eklicem bir yardımcı olurmusunuz



Kod:
<?php if(!empty($_SESSION["login"])){go(URL."admin");die();}?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1.0, shrink-to-fit=no">
  <link href="<?php echo URL?>assets/images/favicon.png" rel="icon" />
  <title>Kayıt Ol - <?php echo $ayar[$lehce."site_title"];?></title>
  <meta name="description" content="<?php echo $ayar[$lehce."site_desc"];?>" />
  <base href="<?php echo URL; ?>">
  <meta property="og:title" content="Kayıt Ol - <?php echo $ayar[$lehce."site_title"];?>">
  <meta property="og:description" content="<?php echo $ayar[$lehce."site_desc"];?>">
  <meta property="og:locale" content="tr_TR">
  <meta property="og:type" content="website">
  <meta name="robots" content="index follow">
  <meta name="googlebot" content="index follow">
  <meta name="theme-color" content="#08C" />
  <!-- Bootstrap CSS -->
    <!-- Bootstrap CSS -->

  <link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Poppins:100,200,300,400,500,600,700,800,900' type='text/css'>

<!-- Stylesheet
  ========================= -->
  <link rel="stylesheet" type="text/css" href="<?php echo URL?>assets/vendor/bootstrap/css/bootstrap.min.css" />
  <link rel="stylesheet" type="text/css" href="<?php echo URL?>assets/vendor/font-awesome/css/all.min.css" />
  <link rel="stylesheet" type="text/css" href="<?php echo URL?>assets/css/stylesheet.css" />

  <link type="text/css" rel="stylesheet" href="<?=URL?>assets/sweet/sweetalert.css">
  <?php require_once(TEMA_INC.'inc/ust.php');?>

    <?php //require_once(TEMA_INC.'inc/head.php');?>

<div id="main-wrapper" class="oxyy-login-register">
  <div class="container-fluid px-0">
    <div class="row no-gutters min-vh-100">
      <!-- Welcome Text
        ========================= -->

        <!-- Welcome Text End -->
        
      <!-- Login Form
        ========================= -->
        <div class="col-md-12 d-flex align-items-center ">
          <div class="container my-auto" style="    margin-top: 5rem!important; margin-bottom: 5rem!important;">
            <div class="row">
              <div class="col-11 col-lg-9 col-xl-8 mx-auto">
                <h3 class="font-weight-600 mb-4">Hemen Kayıt Ol </h3>
                <form role="form" class="form-horizontal"  id="forms" method="POST" action="<?php echo URL ;?>ajax.php?d=kayitol"  enctype="multipart/form-data">
                  <div class="form-group">
                    <label style="display: none;" for="emailAddress">Adınız ve Soyadınız</label>
                    <input type="text" class="form-control" id="emailAddress" name="adsoyad" required placeholder="Adınız ve Soyadınız">
                        <input type="hidden" name="uye_rutbe" value="1">
                  </div>
                  <div class="form-group">
                    <label style="display: none;" for="emailAddress">Mail Adresiniz</label>
                    <input type="email" class="form-control" id="emailAddress"name="mail"  required placeholder="Mail Adresinizi Girin">
                  </div>
                  <div class="form-group">
                    <label style="display: none;" for="emailAddress">Telefon Numaranız</label>
                    <input type="text" class="form-control" id="emailAddress" name="telefon" required placeholder="Telefon Numaranız Girin">
                  </div>
                  <div class="form-group">
                    <label style="display: none;" for="loginPassword">Şifreniz</label>
                    <input type="password" class="form-control" id="loginPassword" name="sifre" required placeholder="Şifrenizi Girin">
                  </div>
                  <div class="form-group">
                    <label style="display: none;" for="loginPassword">Şifreniz Tekrar Girin</label>
                    <input type="password" class="form-control" id="loginPassword" name="sifret" required placeholder="Şifrenizi Tekrar">
                </div><!--
                        <div class="form-group">
                  <label style="display: none;" for="loginPassword">Adresiniz</label>
                  <textarea  class="form-control" placeholder="Adresiniz"></textarea>  </div> -->
                  <div class="row">
               <!--
                <div class="col-sm text-right"><a class="btn-link" href="#">Şifremi Unuttum ?</a></div> -->
              </div>
              <button class="btn btn-warning btn-block my-4 default-btn-one" type="submit">Kayıt Ol</button>
            </form>
            <p class="text-center text-muted mb-0">Mevcut Hesabınız varmı ?  Hemen <a class="btn-link " href="<?php echo URL?>giris">Giriş Yap</a></p>
          </div>
        </div>
      </div>
    </div>
    <!-- Login Form End -->
  </div>
</div>
</div>



<!-- Script -->
<script src="<?php echo URL?>assets/vendor/jquery/jquery.min.js"></script>
<script src="<?php echo URL?>assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Style Switcher -->
<script src="<?php echo URL?>assets/js/switcher.min.js"></script>
<script src="<?php echo URL?>assets/js/theme.js"></script>

<script type="text/javascript" src="<?=URL?>assets/sweet/sweetalert.min.js"></script>   

<script type="text/javascript" src="<?=URL?>assets/sweet/ajaxFormData.js"></script> 
<script>
  $(document).ready(function(event) {
    $('#forms').ajaxForm({

      success: function(data) {
        if(data=="bos-deger"){
          sweetAlert("Hata","Boş Değer Bırakmamalısınız","warning");
          return false;
        }else if(data=="basarili"){
          sweetAlert({
            title : "Başarılı",
            text  : "Kaydınız başarıyla yapıldı. Kaydınızı onaylamak için telefonunuza veya Mail ile gelen doğrulama kodunuzu bir sonraki adımda giriniz.",
            type  : "success"
          },
          function(){
            window.location.href="<?=URL?>uyeonay";
          });
          return false;
        }else if(data=="degisiklik-yok"){
          sweetAlert("Uyarı","Değişiklik Yaptınız mı ?","warning");
          return false;
        }else if(data=="kayitli"){
          sweetAlert("Uyarı","Mail Adresiniz veya Telefon Numaranız daha önce sisteme kayıtlı şifrenizimi unuttunuz ?","warning");
          return false;
        }else if(data=="sifre-uyusmuyor"){
          sweetAlert("Uyarı","Şifreleriniz birbiriyle uyuşmuyor ","warning");
          return false;
        }else{
          sweetAlert(data,"Kaydınız oluştururken bir hata oluştu lütfen tekrar deneyin !","error");
          return false;
        }
      }
    });

  });
</script>

 <?php require_once(TEMA_INC.'inc/footer.php');?>
 

THS-Information

THS-Information

THS-BOT
Turkhacks Kurumsal
16 Haz 2023
2,248 Mesaj

Aktiflik

Seviye

Deneyim

TIM / GÖREV:
selam arkadaşlar elimde bir kayıtol.php dosyası var altdaki forumlar filan çalısıyor lakin kayıt olduktan sonra yöblendirmesi gereken üye onay sayfasına yonlendirmiyorum kayıt oluyor ama onay sayfasına geçmiyor kod blogunu aşağıya eklicem bir yardımcı olurmusunuz



Kod:
<?php if(!empty($_SESSION["login"])){go(URL."admin");die();}?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1.0, shrink-to-fit=no">
  <link href="<?php echo URL?>assets/images/favicon.png" rel="icon" />
  <title>Kayıt Ol - <?php echo $ayar[$lehce."site_title"];?></title>
  <meta name="description" content="<?php echo $ayar[$lehce."site_desc"];?>" />
  <base href="<?php echo URL; ?>">
  <meta property="og:title" content="Kayıt Ol - <?php echo $ayar[$lehce."site_title"];?>">
  <meta property="og:description" content="<?php echo $ayar[$lehce."site_desc"];?>">
  <meta property="og:locale" content="tr_TR">
  <meta property="og:type" content="website">
  <meta name="robots" content="index follow">
  <meta name="googlebot" content="index follow">
  <meta name="theme-color" content="#08C" />
  <!-- Bootstrap CSS -->
    <!-- Bootstrap CSS -->

  <link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Poppins:100,200,300,400,500,600,700,800,900' type='text/css'>

<!-- Stylesheet
  ========================= -->
  <link rel="stylesheet" type="text/css" href="<?php echo URL?>assets/vendor/bootstrap/css/bootstrap.min.css" />
  <link rel="stylesheet" type="text/css" href="<?php echo URL?>assets/vendor/font-awesome/css/all.min.css" />
  <link rel="stylesheet" type="text/css" href="<?php echo URL?>assets/css/stylesheet.css" />

  <link type="text/css" rel="stylesheet" href="<?=URL?>assets/sweet/sweetalert.css">
  <?php require_once(TEMA_INC.'inc/ust.php');?>

    <?php //require_once(TEMA_INC.'inc/head.php');?>

<div id="main-wrapper" class="oxyy-login-register">
  <div class="container-fluid px-0">
    <div class="row no-gutters min-vh-100">
      <!-- Welcome Text
        ========================= -->

        <!-- Welcome Text End -->
        
      <!-- Login Form
        ========================= -->
        <div class="col-md-12 d-flex align-items-center ">
          <div class="container my-auto" style="    margin-top: 5rem!important; margin-bottom: 5rem!important;">
            <div class="row">
              <div class="col-11 col-lg-9 col-xl-8 mx-auto">
                <h3 class="font-weight-600 mb-4">Hemen Kayıt Ol </h3>
                <form role="form" class="form-horizontal"  id="forms" method="POST" action="<?php echo URL ;?>ajax.php?d=kayitol"  enctype="multipart/form-data">
                  <div class="form-group">
                    <label style="display: none;" for="emailAddress">Adınız ve Soyadınız</label>
                    <input type="text" class="form-control" id="emailAddress" name="adsoyad" required placeholder="Adınız ve Soyadınız">
                        <input type="hidden" name="uye_rutbe" value="1">
                  </div>
                  <div class="form-group">
                    <label style="display: none;" for="emailAddress">Mail Adresiniz</label>
                    <input type="email" class="form-control" id="emailAddress"name="mail"  required placeholder="Mail Adresinizi Girin">
                  </div>
                  <div class="form-group">
                    <label style="display: none;" for="emailAddress">Telefon Numaranız</label>
                    <input type="text" class="form-control" id="emailAddress" name="telefon" required placeholder="Telefon Numaranız Girin">
                  </div>
                  <div class="form-group">
                    <label style="display: none;" for="loginPassword">Şifreniz</label>
                    <input type="password" class="form-control" id="loginPassword" name="sifre" required placeholder="Şifrenizi Girin">
                  </div>
                  <div class="form-group">
                    <label style="display: none;" for="loginPassword">Şifreniz Tekrar Girin</label>
                    <input type="password" class="form-control" id="loginPassword" name="sifret" required placeholder="Şifrenizi Tekrar">
                </div><!--
                        <div class="form-group">
                  <label style="display: none;" for="loginPassword">Adresiniz</label>
                  <textarea  class="form-control" placeholder="Adresiniz"></textarea>  </div> -->
                  <div class="row">
               <!--
                <div class="col-sm text-right"><a class="btn-link" href="#">Şifremi Unuttum ?</a></div> -->
              </div>
              <button class="btn btn-warning btn-block my-4 default-btn-one" type="submit">Kayıt Ol</button>
            </form>
            <p class="text-center text-muted mb-0">Mevcut Hesabınız varmı ?  Hemen <a class="btn-link " href="<?php echo URL?>giris">Giriş Yap</a></p>
          </div>
        </div>
      </div>
    </div>
    <!-- Login Form End -->
  </div>
</div>
</div>



<!-- Script -->
<script src="<?php echo URL?>assets/vendor/jquery/jquery.min.js"></script>
<script src="<?php echo URL?>assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Style Switcher -->
<script src="<?php echo URL?>assets/js/switcher.min.js"></script>
<script src="<?php echo URL?>assets/js/theme.js"></script>

<script type="text/javascript" src="<?=URL?>assets/sweet/sweetalert.min.js"></script>   

<script type="text/javascript" src="<?=URL?>assets/sweet/ajaxFormData.js"></script> 
<script>
  $(document).ready(function(event) {
    $('#forms').ajaxForm({

      success: function(data) {
        if(data=="bos-deger"){
          sweetAlert("Hata","Boş Değer Bırakmamalısınız","warning");
          return false;
        }else if(data=="basarili"){
          sweetAlert({
            title : "Başarılı",
            text  : "Kaydınız başarıyla yapıldı. Kaydınızı onaylamak için telefonunuza veya Mail ile gelen doğrulama kodunuzu bir sonraki adımda giriniz.",
            type  : "success"
          },
          function(){
            window.location.href="<?=URL?>uyeonay";
          });
          return false;
        }else if(data=="degisiklik-yok"){
          sweetAlert("Uyarı","Değişiklik Yaptınız mı ?","warning");
          return false;
        }else if(data=="kayitli"){
          sweetAlert("Uyarı","Mail Adresiniz veya Telefon Numaranız daha önce sisteme kayıtlı şifrenizimi unuttunuz ?","warning");
          return false;
        }else if(data=="sifre-uyusmuyor"){
          sweetAlert("Uyarı","Şifreleriniz birbiriyle uyuşmuyor ","warning");
          return false;
        }else{
          sweetAlert(data,"Kaydınız oluştururken bir hata oluştu lütfen tekrar deneyin !","error");
          return false;
        }
      }
    });

  });
</script>

 <?php require_once(TEMA_INC.'inc/footer.php');?>

Merhaba değerli üyemiz,

Script destek konunuz başarı ile oluşturulmuş olup, yardım talebiniz alınmıştır. Talebinize ilişkin çözüm yetkin personel & üyelerimiz tarafından en kısa süre içerisinde paylaşılacaktır. Aynı script için yeni bir istek konusu açmanıza gerek yoktur. İstek, öneri ve şikayetlerinizin Turkhacks.com yönetimi için değerli olduğunu bilmenizi isteriz.

İyi forumlar.
 

TeknOnur

TeknOnur

Bütün bu olanlara dayanamam ama hazırım...
Null
1 Ara 2017
1,078 Mesaj

Aktiflik

Seviye

Deneyim

TIM / GÖREV:
Merhaba

PHP:
<?php if(!empty($_SESSION["login"])){go(URL."admin");die();}?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1.0, shrink-to-fit=no">
  <link href="<?php echo URL?>assets/images/favicon.png" rel="icon" />
  <title>Kayıt Ol - <?php echo $ayar[$lehce."site_title"];?></title>
  <meta name="description" content="<?php echo $ayar[$lehce."site_desc"];?>" />
  <base href="<?php echo URL; ?>">
  <meta property="og:title" content="Kayıt Ol - <?php echo $ayar[$lehce."site_title"];?>">
  <meta property="og:description" content="<?php echo $ayar[$lehce."site_desc"];?>">
  <meta property="og:locale" content="tr_TR">
  <meta property="og:type" content="website">
  <meta name="robots" content="index follow">
  <meta name="googlebot" content="index follow">
  <meta name="theme-color" content="#08C" />
 
  <link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Poppins:100,200,300,400,500,600,700,800,900' type='text/css'>
  <link rel="stylesheet" type="text/css" href="<?php echo URL?>assets/vendor/bootstrap/css/bootstrap.min.css" />
  <link rel="stylesheet" type="text/css" href="<?php echo URL?>assets/vendor/font-awesome/css/all.min.css" />
  <link rel="stylesheet" type="text/css" href="<?php echo URL?>assets/css/stylesheet.css" />
  <link type="text/css" rel="stylesheet" href="<?=URL?>assets/sweet/sweetalert.css">
  <?php require_once(TEMA_INC.'inc/ust.php');?>
</head>
<body>
<div id="main-wrapper" class="oxyy-login-register">
  <div class="container-fluid px-0">
    <div class="row no-gutters min-vh-100">
      <div class="col-md-12 d-flex align-items-center">
        <div class="container my-auto" style="margin-top: 5rem!important; margin-bottom: 5rem!important;">
          <div class="row">
            <div class="col-11 col-lg-9 col-xl-8 mx-auto">
              <h3 class="font-weight-600 mb-4">Hemen Kayıt Ol</h3>
              <form role="form" class="form-horizontal" id="forms" method="POST" action="<?php echo URL ;?>ajax.php?d=kayitol" enctype="multipart/form-data">
                <div class="form-group">
                  <label for="adSoyad" style="display: none;">Adınız ve Soyadınız</label>
                  <input type="text" class="form-control" id="adSoyad" name="adsoyad" required placeholder="Adınız ve Soyadınız">
                  <input type="hidden" name="uye_rutbe" value="1">
                </div>
                <div class="form-group">
                  <label for="emailAddress" style="display: none;">Mail Adresiniz</label>
                  <input type="email" class="form-control" id="emailAddress" name="mail" required placeholder="Mail Adresinizi Girin">
                </div>
                <div class="form-group">
                  <label for="telefon" style="display: none;">Telefon Numaranız</label>
                  <input type="text" class="form-control" id="telefon" name="telefon" required placeholder="Telefon Numaranızı Girin">
                </div>
                <div class="form-group">
                  <label for="loginPassword" style="display: none;">Şifreniz</label>
                  <input type="password" class="form-control" id="loginPassword" name="sifre" required placeholder="Şifrenizi Girin">
                </div>
                <div class="form-group">
                  <label for="loginPasswordConfirm" style="display: none;">Şifrenizi Tekrar Girin</label>
                  <input type="password" class="form-control" id="loginPasswordConfirm" name="sifret" required placeholder="Şifrenizi Tekrar Girin">
                </div>
                <button class="btn btn-warning btn-block my-4 default-btn-one" type="submit">Kayıt Ol</button>
              </form>
              <p class="text-center text-muted mb-0">Mevcut Hesabınız var mı? Hemen <a class="btn-link" href="<?php echo URL?>giris">Giriş Yap</a></p>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

<!-- Script -->
<script src="<?php echo URL?>assets/vendor/jquery/jquery.min.js"></script>
<script src="<?php echo URL?>assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="<?php echo URL?>assets/js/switcher.min.js"></script>
<script src="<?php echo URL?>assets/js/theme.js"></script>
<script type="text/javascript" src="<?=URL?>assets/sweet/sweetalert.min.js"></script>
<script type="text/javascript" src="<?=URL?>assets/sweet/ajaxFormData.js"></script>
<script>
  $(document).ready(function() {
    $('#forms').ajaxForm({
      success: function(data) {
        console.log("Sunucudan gelen yanıt:", data); // Yanıtı hata ayıklamak için loglayın
        if(data === "bos-deger") {
          sweetAlert("Hata", "Boş Değer Bırakmamalısınız", "warning");
        } else if(data === "basarili") {
          sweetAlert({
            title: "Başarılı",
            text: "Kaydınız başarıyla yapıldı. Kaydınızı onaylamak için telefonunuza veya Mail ile gelen doğrulama kodunuzu bir sonraki adımda giriniz.",
            type: "success"
          }, function() {
            window.location.href = "<?=URL?>uyeonay";
          });
        } else if(data === "degisiklik-yok") {
          sweetAlert("Uyarı", "Değişiklik Yaptınız mı?", "warning");
        } else if(data === "kayitli") {
          sweetAlert("Uyarı", "Mail Adresiniz veya Telefon Numaranız daha önce sisteme kayıtlı. Şifrenizi mi unuttunuz?", "warning");
        } else if(data === "sifre-uyusmuyor") {
          sweetAlert("Uyarı", "Şifreleriniz birbiriyle uyuşmuyor", "warning");
        } else {
          sweetAlert("Hata", data + " Kaydınız oluştururken bir hata oluştu, lütfen tekrar deneyin!", "error");
        }
      },
      error: function(xhr, status, error) {
        console.error("AJAX Hatası: ", status, error);
        sweetAlert("Hata", "Bir hata oluştu, lütfen tekrar deneyin!", "error");
      }
    });
  });
</script>
<?php require_once(TEMA_INC.'inc/footer.php');?>
</body>
</html>

Bunu deneyebilir misin? Sorunun form kaydı sonrası yönlendirme işlemi ile ilgili. JavaScript kodunu gözden geçirip tekrar düzenledim. Denedikten sonra sorun çözülmezse tekrar bilgi verirsen inceleyebilirim.
 

carpiciyim

İstanbul
7 Haz 2018
865 Mesaj

Aktiflik

Seviye

Deneyim

TIM / GÖREV:
Merhaba

PHP:
<?php if(!empty($_SESSION["login"])){go(URL."admin");die();}?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1.0, shrink-to-fit=no">
  <link href="<?php echo URL?>assets/images/favicon.png" rel="icon" />
  <title>Kayıt Ol - <?php echo $ayar[$lehce."site_title"];?></title>
  <meta name="description" content="<?php echo $ayar[$lehce."site_desc"];?>" />
  <base href="<?php echo URL; ?>">
  <meta property="og:title" content="Kayıt Ol - <?php echo $ayar[$lehce."site_title"];?>">
  <meta property="og:description" content="<?php echo $ayar[$lehce."site_desc"];?>">
  <meta property="og:locale" content="tr_TR">
  <meta property="og:type" content="website">
  <meta name="robots" content="index follow">
  <meta name="googlebot" content="index follow">
  <meta name="theme-color" content="#08C" />
 
  <link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Poppins:100,200,300,400,500,600,700,800,900' type='text/css'>
  <link rel="stylesheet" type="text/css" href="<?php echo URL?>assets/vendor/bootstrap/css/bootstrap.min.css" />
  <link rel="stylesheet" type="text/css" href="<?php echo URL?>assets/vendor/font-awesome/css/all.min.css" />
  <link rel="stylesheet" type="text/css" href="<?php echo URL?>assets/css/stylesheet.css" />
  <link type="text/css" rel="stylesheet" href="<?=URL?>assets/sweet/sweetalert.css">
  <?php require_once(TEMA_INC.'inc/ust.php');?>
</head>
<body>
<div id="main-wrapper" class="oxyy-login-register">
  <div class="container-fluid px-0">
    <div class="row no-gutters min-vh-100">
      <div class="col-md-12 d-flex align-items-center">
        <div class="container my-auto" style="margin-top: 5rem!important; margin-bottom: 5rem!important;">
          <div class="row">
            <div class="col-11 col-lg-9 col-xl-8 mx-auto">
              <h3 class="font-weight-600 mb-4">Hemen Kayıt Ol</h3>
              <form role="form" class="form-horizontal" id="forms" method="POST" action="<?php echo URL ;?>ajax.php?d=kayitol" enctype="multipart/form-data">
                <div class="form-group">
                  <label for="adSoyad" style="display: none;">Adınız ve Soyadınız</label>
                  <input type="text" class="form-control" id="adSoyad" name="adsoyad" required placeholder="Adınız ve Soyadınız">
                  <input type="hidden" name="uye_rutbe" value="1">
                </div>
                <div class="form-group">
                  <label for="emailAddress" style="display: none;">Mail Adresiniz</label>
                  <input type="email" class="form-control" id="emailAddress" name="mail" required placeholder="Mail Adresinizi Girin">
                </div>
                <div class="form-group">
                  <label for="telefon" style="display: none;">Telefon Numaranız</label>
                  <input type="text" class="form-control" id="telefon" name="telefon" required placeholder="Telefon Numaranızı Girin">
                </div>
                <div class="form-group">
                  <label for="loginPassword" style="display: none;">Şifreniz</label>
                  <input type="password" class="form-control" id="loginPassword" name="sifre" required placeholder="Şifrenizi Girin">
                </div>
                <div class="form-group">
                  <label for="loginPasswordConfirm" style="display: none;">Şifrenizi Tekrar Girin</label>
                  <input type="password" class="form-control" id="loginPasswordConfirm" name="sifret" required placeholder="Şifrenizi Tekrar Girin">
                </div>
                <button class="btn btn-warning btn-block my-4 default-btn-one" type="submit">Kayıt Ol</button>
              </form>
              <p class="text-center text-muted mb-0">Mevcut Hesabınız var mı? Hemen <a class="btn-link" href="<?php echo URL?>giris">Giriş Yap</a></p>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

<!-- Script -->
<script src="<?php echo URL?>assets/vendor/jquery/jquery.min.js"></script>
<script src="<?php echo URL?>assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="<?php echo URL?>assets/js/switcher.min.js"></script>
<script src="<?php echo URL?>assets/js/theme.js"></script>
<script type="text/javascript" src="<?=URL?>assets/sweet/sweetalert.min.js"></script>
<script type="text/javascript" src="<?=URL?>assets/sweet/ajaxFormData.js"></script>
<script>
  $(document).ready(function() {
    $('#forms').ajaxForm({
      success: function(data) {
        console.log("Sunucudan gelen yanıt:", data); // Yanıtı hata ayıklamak için loglayın
        if(data === "bos-deger") {
          sweetAlert("Hata", "Boş Değer Bırakmamalısınız", "warning");
        } else if(data === "basarili") {
          sweetAlert({
            title: "Başarılı",
            text: "Kaydınız başarıyla yapıldı. Kaydınızı onaylamak için telefonunuza veya Mail ile gelen doğrulama kodunuzu bir sonraki adımda giriniz.",
            type: "success"
          }, function() {
            window.location.href = "<?=URL?>uyeonay";
          });
        } else if(data === "degisiklik-yok") {
          sweetAlert("Uyarı", "Değişiklik Yaptınız mı?", "warning");
        } else if(data === "kayitli") {
          sweetAlert("Uyarı", "Mail Adresiniz veya Telefon Numaranız daha önce sisteme kayıtlı. Şifrenizi mi unuttunuz?", "warning");
        } else if(data === "sifre-uyusmuyor") {
          sweetAlert("Uyarı", "Şifreleriniz birbiriyle uyuşmuyor", "warning");
        } else {
          sweetAlert("Hata", data + " Kaydınız oluştururken bir hata oluştu, lütfen tekrar deneyin!", "error");
        }
      },
      error: function(xhr, status, error) {
        console.error("AJAX Hatası: ", status, error);
        sweetAlert("Hata", "Bir hata oluştu, lütfen tekrar deneyin!", "error");
      }
    });
  });
</script>
<?php require_once(TEMA_INC.'inc/footer.php');?>
</body>
</html>

Bunu deneyebilir misin? Sorunun form kaydı sonrası yönlendirme işlemi ile ilgili. JavaScript kodunu gözden geçirip tekrar düzenledim. Denedikten sonra sorun çözülmezse tekrar bilgi verirsen inceleyebilirim.
öncelikle yorumunuz için ilginiz için teşekkürler ama yine olmadı
 

coderby

Germany
15 Ara 2021
2,097 Mesaj
TIM Görevleri
1

Aktiflik

Seviye

Deneyim

TIM / GÖREV:
ajax.php?d=kayitol bölümü basarili döndürme ve window.location.href="<?=URL?>uyeonay"; satırına bak konsoldan networkten çalışıyor mu diye
console.log için
Kod:
console.log("Redirecting to confirmation page");
window.location.href="<?=URL?>uyeonay";


Bunu ekleyebilirsin

window.location.href="<?=URL?>uyeonay"; için de

Kod:
$(document).ready(function(event) {
  $('#forms').ajaxForm({
    success: function(data) {
      if(data=="bos-deger"){
        sweetAlert("Hata","Boş Değer Bırakmamalısınız","warning");
        return false;
      } else if(data=="basarili"){
        sweetAlert({
          title : "Başarılı",
          text  : "Kaydınız başarıyla yapıldı. Kaydınızı onaylamak için telefonunuza veya Mail ile gelen doğrulama kodunuzu bir sonraki adımda giriniz.",
          type  : "success"
        },
        function(){
          window.location.href="<?=URL?>uyeonay";
        });
        return false;
      } else if(data=="degisiklik-yok"){
        sweetAlert("Uyarı","Değişiklik Yaptınız mı ?","warning");
        return false;
      } else if(data=="kayitli"){
        sweetAlert("Uyarı","Mail Adresiniz veya Telefon Numaranız daha önce sisteme kayıtlı şifrenizimi unuttunuz ?","warning");
        return false;
      } else if(data=="sifre-uyusmuyor"){
        sweetAlert("Uyarı","Şifreleriniz birbiriyle uyuşmuyor ","warning");
        return false;
      } else {
        sweetAlert(data,"Kaydınız oluştururken bir hata oluştu lütfen tekrar deneyin !","error");
        return false;
      }
    }
  });
});



PHP:
<?php
error_reporting(E_ALL);ini_set('display_errors', 1);ini_set('log_errors', 1);ini_set('error_log', dirname(__FILE__) . '/error_log.txt');
 if(!empty($_SESSION["login"])){go(URL."admin");die();}?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1.0, shrink-to-fit=no">
  <link href="<?php echo URL?>assets/images/favicon.png" rel="icon" />
  <title>Kayıt Ol - <?php echo $ayar[$lehce."site_title"];?></title>
  <meta name="description" content="<?php echo $ayar[$lehce."site_desc"];?>" />
  <base href="<?php echo URL; ?>">
  <meta property="og:title" content="Kayıt Ol - <?php echo $ayar[$lehce."site_title"];?>">
  <meta property="og:description" content="<?php echo $ayar[$lehce."site_desc"];?>">
  <meta property="og:locale" content="tr_TR">
  <meta property="og:type" content="website">
  <meta name="robots" content="index follow">
  <meta name="googlebot" content="index follow">
  <meta name="theme-color" content="#08C" />

  <link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Poppins:100,200,300,400,500,600,700,800,900' type='text/css'>
  <link rel="stylesheet" type="text/css" href="<?php echo URL?>assets/vendor/bootstrap/css/bootstrap.min.css" />
  <link rel="stylesheet" type="text/css" href="<?php echo URL?>assets/vendor/font-awesome/css/all.min.css" />
  <link rel="stylesheet" type="text/css" href="<?php echo URL?>assets/css/stylesheet.css" />
  <link type="text/css" rel="stylesheet" href="<?=URL?>assets/sweet/sweetalert.css">

  <?php require_once(TEMA_INC.'inc/ust.php');?>

<div id="main-wrapper" class="oxyy-login-register">
  <div class="container-fluid px-0">
    <div class="row no-gutters min-vh-100">
      <div class="col-md-12 d-flex align-items-center">
        <div class="container my-auto" style="margin-top: 5rem!important; margin-bottom: 5rem!important;">
          <div class="row">
            <div class="col-11 col-lg-9 col-xl-8 mx-auto">
              <h3 class="font-weight-600 mb-4">Hemen Kayıt Ol</h3>
              <form role="form" class="form-horizontal" id="forms" method="POST" action="<?php echo URL ;?>ajax.php?d=kayitol" enctype="multipart/form-data">
                <div class="form-group">
                  <label style="display: none;" for="emailAddress">Adınız ve Soyadınız</label>
                  <input type="text" class="form-control" id="emailAddress" name="adsoyad" required placeholder="Adınız ve Soyadınız">
                  <input type="hidden" name="uye_rutbe" value="1">
                </div>
                <div class="form-group">
                  <label style="display: none;" for="emailAddress">Mail Adresiniz</label>
                  <input type="email" class="form-control" id="emailAddress" name="mail" required placeholder="Mail Adresinizi Girin">
                </div>
                <div class="form-group">
                  <label style="display: none;" for="emailAddress">Telefon Numaranız</label>
                  <input type="text" class="form-control" id="emailAddress" name="telefon" required placeholder="Telefon Numaranız Girin">
                </div>
                <div class="form-group">
                  <label style="display: none;" for="loginPassword">Şifreniz</label>
                  <input type="password" class="form-control" id="loginPassword" name="sifre" required placeholder="Şifrenizi Girin">
                </div>
                <div class="form-group">
                  <label style="display: none;" for="loginPassword">Şifreniz Tekrar Girin</label>
                  <input type="password" class="form-control" id="loginPassword" name="sifret" required placeholder="Şifrenizi Tekrar Girin">
                </div>
                <button class="btn btn-warning btn-block my-4 default-btn-one" type="submit">Kayıt Ol</button>
              </form>
              <p class="text-center text-muted mb-0">Mevcut Hesabınız var mı? Hemen <a class="btn-link" href="<?php echo URL?>giris">Giriş Yap</a></p>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

<script src="<?php echo URL?>assets/vendor/jquery/jquery.min.js"></script>
<script src="<?php echo URL?>assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="<?php echo URL?>assets/js/switcher.min.js"></script>
<script src="<?php echo URL?>assets/js/theme.js"></script>
<script type="text/javascript" src="<?=URL?>assets/sweet/sweetalert.min.js"></script>
<script type="text/javascript" src="<?=URL?>assets/sweet/ajaxFormData.js"></script>

<script>
  $(document).ready(function() {
    $('#forms').ajaxForm({
      success: function(data) {
        if(data=="bos-deger"){
          sweetAlert("Hata","Boş Değer Bırakmamalısınız","warning");
          return false;
        } else if(data=="basarili"){
          sweetAlert({
            title : "Başarılı",
            text  : "Kaydınız başarıyla yapıldı. Kaydınızı onaylamak için telefonunuza veya Mail ile gelen doğrulama kodunuzu bir sonraki adımda giriniz.",
            type  : "success"
          },
          function(){
            console.log("Redirecting to confirmation page");
            window.location.href="<?=URL?>uyeonay";
          });
          return false;
        } else if(data=="degisiklik-yok"){
          sweetAlert("Uyarı","Değişiklik Yaptınız mı?","warning");
          return false;
        } else if(data=="kayitli"){
          sweetAlert("Uyarı","Mail Adresiniz veya Telefon Numaranız daha önce sisteme kayıtlı. Şifrenizi mi unuttunuz?","warning");
          return false;
        } else if(data=="sifre-uyusmuyor"){
          sweetAlert("Uyarı","Şifreleriniz birbiriyle uyuşmuyor","warning");
          return false;
        } else {
          sweetAlert(data,"Kaydınız oluştururken bir hata oluştu lütfen tekrar deneyin!","error");
          return false;
        }
      }
    });
  });
</script>

<?php require_once(TEMA_INC.'inc/footer.php');?>
 

TeknOnur

TeknOnur

Bütün bu olanlara dayanamam ama hazırım...
Null
1 Ara 2017
1,078 Mesaj

Aktiflik

Seviye

Deneyim

TIM / GÖREV:
ajax.php?d=kayitol bölümü basarili döndürme ve window.location.href="<?=URL?>uyeonay"; satırına bak konsoldan networkten çalışıyor mu diye
console.log için
Kod:
console.log("Redirecting to confirmation page");
window.location.href="<?=URL?>uyeonay";


Bunu ekleyebilirsin

window.location.href="<?=URL?>uyeonay"; için de

Kod:
$(document).ready(function(event) {
  $('#forms').ajaxForm({
    success: function(data) {
      if(data=="bos-deger"){
        sweetAlert("Hata","Boş Değer Bırakmamalısınız","warning");
        return false;
      } else if(data=="basarili"){
        sweetAlert({
          title : "Başarılı",
          text  : "Kaydınız başarıyla yapıldı. Kaydınızı onaylamak için telefonunuza veya Mail ile gelen doğrulama kodunuzu bir sonraki adımda giriniz.",
          type  : "success"
        },
        function(){
          window.location.href="<?=URL?>uyeonay";
        });
        return false;
      } else if(data=="degisiklik-yok"){
        sweetAlert("Uyarı","Değişiklik Yaptınız mı ?","warning");
        return false;
      } else if(data=="kayitli"){
        sweetAlert("Uyarı","Mail Adresiniz veya Telefon Numaranız daha önce sisteme kayıtlı şifrenizimi unuttunuz ?","warning");
        return false;
      } else if(data=="sifre-uyusmuyor"){
        sweetAlert("Uyarı","Şifreleriniz birbiriyle uyuşmuyor ","warning");
        return false;
      } else {
        sweetAlert(data,"Kaydınız oluştururken bir hata oluştu lütfen tekrar deneyin !","error");
        return false;
      }
    }
  });
});



PHP:
<?php
error_reporting(E_ALL);ini_set('display_errors', 1);ini_set('log_errors', 1);ini_set('error_log', dirname(__FILE__) . '/error_log.txt');
 if(!empty($_SESSION["login"])){go(URL."admin");die();}?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1.0, shrink-to-fit=no">
  <link href="<?php echo URL?>assets/images/favicon.png" rel="icon" />
  <title>Kayıt Ol - <?php echo $ayar[$lehce."site_title"];?></title>
  <meta name="description" content="<?php echo $ayar[$lehce."site_desc"];?>" />
  <base href="<?php echo URL; ?>">
  <meta property="og:title" content="Kayıt Ol - <?php echo $ayar[$lehce."site_title"];?>">
  <meta property="og:description" content="<?php echo $ayar[$lehce."site_desc"];?>">
  <meta property="og:locale" content="tr_TR">
  <meta property="og:type" content="website">
  <meta name="robots" content="index follow">
  <meta name="googlebot" content="index follow">
  <meta name="theme-color" content="#08C" />

  <link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Poppins:100,200,300,400,500,600,700,800,900' type='text/css'>
  <link rel="stylesheet" type="text/css" href="<?php echo URL?>assets/vendor/bootstrap/css/bootstrap.min.css" />
  <link rel="stylesheet" type="text/css" href="<?php echo URL?>assets/vendor/font-awesome/css/all.min.css" />
  <link rel="stylesheet" type="text/css" href="<?php echo URL?>assets/css/stylesheet.css" />
  <link type="text/css" rel="stylesheet" href="<?=URL?>assets/sweet/sweetalert.css">

  <?php require_once(TEMA_INC.'inc/ust.php');?>

<div id="main-wrapper" class="oxyy-login-register">
  <div class="container-fluid px-0">
    <div class="row no-gutters min-vh-100">
      <div class="col-md-12 d-flex align-items-center">
        <div class="container my-auto" style="margin-top: 5rem!important; margin-bottom: 5rem!important;">
          <div class="row">
            <div class="col-11 col-lg-9 col-xl-8 mx-auto">
              <h3 class="font-weight-600 mb-4">Hemen Kayıt Ol</h3>
              <form role="form" class="form-horizontal" id="forms" method="POST" action="<?php echo URL ;?>ajax.php?d=kayitol" enctype="multipart/form-data">
                <div class="form-group">
                  <label style="display: none;" for="emailAddress">Adınız ve Soyadınız</label>
                  <input type="text" class="form-control" id="emailAddress" name="adsoyad" required placeholder="Adınız ve Soyadınız">
                  <input type="hidden" name="uye_rutbe" value="1">
                </div>
                <div class="form-group">
                  <label style="display: none;" for="emailAddress">Mail Adresiniz</label>
                  <input type="email" class="form-control" id="emailAddress" name="mail" required placeholder="Mail Adresinizi Girin">
                </div>
                <div class="form-group">
                  <label style="display: none;" for="emailAddress">Telefon Numaranız</label>
                  <input type="text" class="form-control" id="emailAddress" name="telefon" required placeholder="Telefon Numaranız Girin">
                </div>
                <div class="form-group">
                  <label style="display: none;" for="loginPassword">Şifreniz</label>
                  <input type="password" class="form-control" id="loginPassword" name="sifre" required placeholder="Şifrenizi Girin">
                </div>
                <div class="form-group">
                  <label style="display: none;" for="loginPassword">Şifreniz Tekrar Girin</label>
                  <input type="password" class="form-control" id="loginPassword" name="sifret" required placeholder="Şifrenizi Tekrar Girin">
                </div>
                <button class="btn btn-warning btn-block my-4 default-btn-one" type="submit">Kayıt Ol</button>
              </form>
              <p class="text-center text-muted mb-0">Mevcut Hesabınız var mı? Hemen <a class="btn-link" href="<?php echo URL?>giris">Giriş Yap</a></p>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

<script src="<?php echo URL?>assets/vendor/jquery/jquery.min.js"></script>
<script src="<?php echo URL?>assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="<?php echo URL?>assets/js/switcher.min.js"></script>
<script src="<?php echo URL?>assets/js/theme.js"></script>
<script type="text/javascript" src="<?=URL?>assets/sweet/sweetalert.min.js"></script>
<script type="text/javascript" src="<?=URL?>assets/sweet/ajaxFormData.js"></script>

<script>
  $(document).ready(function() {
    $('#forms').ajaxForm({
      success: function(data) {
        if(data=="bos-deger"){
          sweetAlert("Hata","Boş Değer Bırakmamalısınız","warning");
          return false;
        } else if(data=="basarili"){
          sweetAlert({
            title : "Başarılı",
            text  : "Kaydınız başarıyla yapıldı. Kaydınızı onaylamak için telefonunuza veya Mail ile gelen doğrulama kodunuzu bir sonraki adımda giriniz.",
            type  : "success"
          },
          function(){
            console.log("Redirecting to confirmation page");
            window.location.href="<?=URL?>uyeonay";
          });
          return false;
        } else if(data=="degisiklik-yok"){
          sweetAlert("Uyarı","Değişiklik Yaptınız mı?","warning");
          return false;
        } else if(data=="kayitli"){
          sweetAlert("Uyarı","Mail Adresiniz veya Telefon Numaranız daha önce sisteme kayıtlı. Şifrenizi mi unuttunuz?","warning");
          return false;
        } else if(data=="sifre-uyusmuyor"){
          sweetAlert("Uyarı","Şifreleriniz birbiriyle uyuşmuyor","warning");
          return false;
        } else {
          sweetAlert(data,"Kaydınız oluştururken bir hata oluştu lütfen tekrar deneyin!","error");
          return false;
        }
      }
    });
  });
</script>

<?php require_once(TEMA_INC.'inc/footer.php');?>
Kayıt olduktan sonra aktivasyon için kod göndermesi gerekiyor. Mail gitmiyor. O yüzden hata veriyor sanırım. 2 seçenek kontrol ediliyor sanırım. 1. üyelik bilgileri doğrulama 2. doğrulana bilgilere aktivasyon kodu gönderme. ilkini başarılı tespit ettiği için kayıt alıyor. 2.döngüde mail göndermediği için sonuç döngüsünde hata uyarısı veriyor. Sadece ajax ve kayıt ol php dosyalarından değilde genel bi kontrol yapılması gerekiyor.
 

carpiciyim

İstanbul
7 Haz 2018
865 Mesaj

Aktiflik

Seviye

Deneyim

TIM / GÖREV:
Kayıt olduktan sonra aktivasyon için kod göndermesi gerekiyor. Mail gitmiyor. O yüzden hata veriyor sanırım. 2 seçenek kontrol ediliyor sanırım. 1. üyelik bilgileri doğrulama 2. doğrulana bilgilere aktivasyon kodu gönderme. ilkini başarılı tespit ettiği için kayıt alıyor. 2.döngüde mail göndermediği için sonuç döngüsünde hata uyarısı veriyor. Sadece ajax ve kayıt ol php dosyalarından değilde genel bi kontrol yapılması gerekiyor.
yardımların için teşekkürler gerekli işlemleri yaparak sorunları çözdü