-
Notifications
You must be signed in to change notification settings - Fork 0
/
hesabimadreslereklesonuc.php
49 lines (47 loc) · 1.33 KB
/
hesabimadreslereklesonuc.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
if(isset($_SESSION["Kullanici"])){
if(isset($_POST["IsimSoyisim"])){
$GelenIsimSoyisim = Guvenlik($_POST["IsimSoyisim"]);
}else{
$GelenIsimSoyisim = "";
}
if(isset($_POST["Adres"])){
$GelenAdres = Guvenlik($_POST["Adres"]);
}else{
$GelenAdres = "";
}
if(isset($_POST["Ilce"])){
$GelenIlce = Guvenlik($_POST["Ilce"]);
}else{
$GelenIlce = "";
}
if(isset($_POST["Sehir"])){
$GelenSehir = Guvenlik($_POST["Sehir"]);
}else{
$GelenSehir = "";
}
if(isset($_POST["TelefonNumarasi"])){
$GelenTelefonNumarasi = Guvenlik($_POST["TelefonNumarasi"]);
}else{
$GelenTelefonNumarasi = "";
}
if(($GelenIsimSoyisim!="") and ($GelenAdres!="") and ($GelenIlce!="") and ($GelenSehir!="") and ($GelenTelefonNumarasi!="")){
$AdresEklemeSorgusu = $VeritabaniBaglantisi->prepare("INSERT INTO adresler (UyeId, AdiSoyadi, Adres, Ilce, Sehir, TelefonNumarasi) values (?, ?, ?, ?, ?, ?)");
$AdresEklemeSorgusu->execute([$KullaniciID, $GelenIsimSoyisim, $GelenAdres, $GelenIlce, $GelenSehir, $GelenTelefonNumarasi]);
$EklemeKontrol = $AdresEklemeSorgusu->rowCount();
if($EklemeKontrol>0){
header("Location:index.php?SK=72");
exit();
}else{
header("Location:index.php?SK=73");
exit();
}
}else{
header("Location:index.php?SK=74");
exit();
}
}else{
header("Location:index.php");
exit();
}
?>