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");
?>