-
Notifications
You must be signed in to change notification settings - Fork 0
/
hesabimadreslerguncelle.php
105 lines (82 loc) · 3.88 KB
/
hesabimadreslerguncelle.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?php
if (isset($_SESSION["Kullanici"])){
if (isset($_GET["ID"])){
$GelenID = Guvenlik($_GET["ID"]);
}else {
$GelenID = "";
}
if ($GelenID!=""){
$AdresSorgusu = $VeritabaniBaglantisi->prepare("SELECT * FROM adresler WHERE id = ? AND UyeId = ? LIMIT 1");
$AdresSorgusu->execute([$GelenID, $KullaniciID ]);
$AdresSayisi = $AdresSorgusu->rowCount();
$KayitBilgisi = $AdresSorgusu->fetch(PDO::FETCH_ASSOC);
if ($AdresSayisi>0){
?>
<table width="1065" align="center" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="500" valign="top">
<form action="index.php?SK=63&ID=<?php echo $GelenID;?>" method="post">
<table width="500" align="center" border="0" cellpadding="0" cellspacing="0">
<tr height="40">
<td style="color:#FF9900"><h3>Bilgileri Değiştir</h3></td>
</tr>
<tr height="30">
<td valign="top" style="border-bottom: 1px dashed #CCCCCC;"> Bilgilerinizi girerek değiştirin.....
olun
</td>
</tr>
<tr height="30">
<td valign="bottom" align="left">İsim Soyisim (*)</td>
</tr>
<tr height="30">
<td valign="top" align="left"><input type="text" name="IsimSoyisim" class="InputAlanlari" value="<?php echo $KayitBilgisi["AdSoyad"]; ?>" </td>
</tr>
<tr height="30">
<td valign="bottom" align="left">Adresi (*)</td>
</tr>
<tr height="30">
<td valign="top" align="left"><input type="text" name="Adres" class="InputAlanlari" value="<?php echo $KayitBilgisi["Adres"]; ?>" </td>
</tr>
<tr height="30">
<tr height="30">
<td valign="bottom" align="left">İlçe</td>
</tr>
<tr height="30">
<td valign="top" align="left"><input type="text" name="Ilce" class="InputAlanlari" value="<?php echo $KayitBilgisi["Ilce"] ?>"></td>
</tr>
<tr height="30">
<tr height="30">
<td valign="bottom" align="left">Sehir</td>
</tr>
<tr height="30">
<td valign="top" align="left"><input type="text" name="Sehir" class="InputAlanlari" value="<?php echo $KayitBilgisi["Sehir"] ?>" ></td>
</tr>
<tr height="30">
<td valign="bottom" align="left">Telefon Numarası (*)</td>
</tr>
<tr height="30">
<td valign="top" align="left"><input type="text" name="TelefonNumarasi" maxlength="11"
class="InputAlanlari" value="<?php echo $KayitBilgisi["TelefonNumarasi"] ?>"></td>
</tr>
<tr height="40">
<td align="center"><input type="submit" value="Bilgilerimi Güncelle" class="YesilButon"></td>
</tr>
</table>
</form>
</td>
<td width="20"> </td>
</tr>
</table>
<?php
}else{
header("Localhost:index.php?SK=65");
}
}else{
header("Location:index.php?SK=65");
exit();
}
}else{
header("Location:index.php");
exit();
}
?>