• 06-02-2019, 18:39:27
    #10
    if ($_POST) {  
    
         
        $ad = $_POST['ad'];  
        $soyad = $_POST['soyad']; 
        $eposta = $_POST['eposta']; 
        $tc = $_POST['tc']; 
        $telefon = $_POST['telefon']; 
        $sehir = $_POST['Sehir'];   
    
       
    
        if ($ad<>"" && $soyad<>"" &&  $eposta<>"" && $tc<>"" && $telefon<>"" && $sehir<>"") {  
       
             
            if ($baglanti->query("INSERT INTO kayit (ad,soyad,eposta,tc,telefon,Sehir) VALUES ('$ad','$soyad','$eposta','$tc','$telefon','$sehir')"))  
            { 
                echo "<p align='center' style='color:red;'><strong><font size=\"5\">", "Başvurunuz Alındı</strong></font></p>";  
            } 
            else 
            { 
                echo "Hata oluştu"; 
            } 
    
        } 
    
    } 
    header ("location: index.php"); 
    ?>
  • 06-02-2019, 20:53:04
    #11
    kompleks düşünmeye gerek yok, madem çok hakim değilsin sadece sayfa başında düz if($_POST) yerine if(isset($_POST)) yazarsın, işin bitince unset($_POST) verdiğinde konu kapanır