-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathform.php
More file actions
32 lines (28 loc) · 734 Bytes
/
Copy pathform.php
File metadata and controls
32 lines (28 loc) · 734 Bytes
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
<form action="kaydet.php" method="post">
Ad : <input type="text" name="ad" /><br />
Soyad : <input type="text" name="soyad" /><br />
Yas <input type="number" name="yas" /><br />
Cinsiyet <br />
Kadın <input type="radio" name="cinsiyet" value="kadin" />
Erkek <input type="radio" name="cinsiyet" value="erkek"><br />
Şehir <br />
<?php
require "baglan.php";
$sorgu = $db->prepare("SELECT * FROM iller ORDER BY ilinadi ASC");
$sorgu->execute();
$iller = $sorgu->fetchAll();
// var_dump($iller);
?>
<select name="sehir">
<?php
foreach($iller AS $il){
echo "
<option value='$il[id]'>$il[ilinadi]</option>
";
}
?>
</select>
<br />
<br />
<input type="submit" value="formumu gönder" />
</form>