-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhesabimadreslerguncelle.php
100 lines (99 loc) · 5.16 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
<?php
include_once "Ayarlar/settings.php";
include_once "Ayarlar/functions.php";
if (isset($_SESSION["Kullanici"])) {
if (isset($_GET["ID"])) {
$gelenId = guvenlik($_GET["ID"]);
} else {
$gelenId = "";
}
if ($gelenId != "") {
$adresSorgusu = $dbConnection->prepare("select * from adresler where id = ? and UyeId = ? limit 1");
$adresSorgusu->execute([$gelenId, $kullaniciId]);
$adresSayisi = $adresSorgusu->rowCount();
$kayitBilgisi = $adresSorgusu->fetch();
if ($adresSayisi > 0) {
?>
<table width="1065" align="center" border="0" cellpadding="0" cellspacing="0" bgcolor="F9F9F9">
<tr>
<td width="1065" valign="top">
<form action="index.php?SK=63&ID=<?php echo $gelenId; ?>" method="post">
<table width="1065" align="center" border="0" cellspacing="0" cellpadding="0"
style="margin-bottom: 20px; ">
<tr height="40">
<td colspan="2" style="color:#FF9900;"><h3>Yeni Adres Ekle</h3></td>
</tr>
<tr height="30">
<td colspan="2" valign="top" style="border-bottom: 1px dashed #CCC">Adres ekleme
işlemlerinizi buradan yapabilirsiniz.
</td>
</tr>
<tr height="30">
<td colspan="2" valign="bottom">Ad Soyad</td>
</tr>
<tr height="30">
<td colspan="2" valign="top"><input class="InputAlanlari" type="text"
name="AdiSoyadi"
value="<?php echo $kayitBilgisi["AdiSoyadi"];
?>">
</td>
</tr>
<tr height="30">
<td colspan="2" valign="bottom">Adres</td>
</tr>
<tr height="30">
<td colspan="2" valign="top"><input class="InputAlanlari" type="text" name="Adres"
value="<?php echo $kayitBilgisi["Adres"]; ?>">
</td>
</tr>
<tr height="30">
<td colspan="2" valign="bottom">İl</td>
</tr>
<tr height="30">
<td colspan="2" valign="top"><input class="InputAlanlari" type="text" name="Il"
value="<?php echo $kayitBilgisi["Il"]; ?>">
</td>
</tr>
<tr height="30">
<td colspan="2" valign="bottom">İlçe</td>
</tr>
<tr height="30">
<td colspan="2" valign="top"><input class="InputAlanlari" type="text" name="Ilce"
value="<?php echo $kayitBilgisi["Ilce"]; ?>">
</td>
</tr>
<tr height="30">
<td colspan="2" valign="bottom">Telefon Numarası</td>
</tr>
<tr height="30">
<td colspan="2" valign="top"><input class="InputAlanlari" type="text"
name="TelefonNumarasi"
maxlength="10"
value="<?php echo $kayitBilgisi["TelefonNumarasi"]; ?>">
</td>
</tr>
<tr height="30">
<td colspan="2"> </td>
</tr>
<tr height="30">
<td colspan="2"><input class="YesilButon" type="submit" value="Adres Ekle"></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<?php
} else {
header("Location:index.php?SK=65");
exit();
}
} else {
header("Location:index.php?SK=65");
exit();
}
} else {
header("Location:index.php?SK=0");
exit();
}
?>