-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinput.php
119 lines (100 loc) · 3.88 KB
/
input.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Inputan</title>
<link rel="stylesheet" href="bootstrap.css">
</head>
<body class="container">
<form action="formated.php" method="post">
<label for="harga">Harga</label>
<br>
<select name="harga" id="harga">
<option value="5">Sangat Penting</option>
<option value="4">Penting</option>
<option value="3">Cukup Penting</option>
<option value="2">Tidak Penting</option>
<option value="1">Sangat Tidak Penting</option>
</select>
<br>
<label for="luas_kamar">Luas Kamar</label>
<br>
<select name="luas_kamar" id="luas_kamar">
<option value="5">Sangat Penting</option>
<option value="4">Penting</option>
<option value="3">Cukup Penting</option>
<option value="2">Tidak Penting</option>
<option value="1">Sangat Tidak Penting</option>
</select>
<br>
<label for="jarak">Jarak</label>
<br>
<select name="jarak" id="jarak">
<option value="5">Sangat Penting</option>
<option value="4">Penting</option>
<option value="3">Cukup Penting</option>
<option value="2">Tidak Penting</option>
<option value="1">Sangat Tidak Penting</option>
</select>
<br>
<label for="fasilitas_kamar">Fasilitas Kamar</label>
<br>
<select name="fasilitas_kamar" id="fasilitas_kamar">
<option value="5">Sangat Penting</option>
<option value="4">Penting</option>
<option value="3">Cukup Penting</option>
<option value="2">Tidak Penting</option>
<option value="1">Sangat Tidak Penting</option>
</select>
<br>
<label for="fasilitas_penunjang">Fasilitas Penunjang</label>
<br>
<select name="fasilitas_penunjang" id="fasilitas_penunjang">
<option value="5">Sangat Penting</option>
<option value="4">Penting</option>
<option value="3">Cukup Penting</option>
<option value="2">Tidak Penting</option>
<option value="1">Sangat Tidak Penting</option>
</select>
<br>
<label for="fasilitas_lingkungan">Fasilitas linkungan</label>
<br>
<select name="fasilitas_lingkungan" id="fasilitas_lingkungan">
<option value="5">Sangat Penting</option>
<option value="4">Penting</option>
<option value="3">Cukup Penting</option>
<option value="2">Tidak Penting</option>
<option value="1">Sangat Tidak Penting</option>
</select>
<br>
<?php
include "./config/connection_v2.php";
$kriteria_query = "SELECT * from dss_kriteria";
$kriteria = mysqli_query($connection, $kriteria_query);
while ($data = mysqli_fetch_assoc($kriteria)) {
echo "
<label for='$data[nama]'>$data[nama]</label>
<br>
<select name='$data[nama]' id='$data[nama]'>
<option value='5'>Sangat Penting</option>
<option value='4'>Penting</option>
<option value='3'>Cukup Penting</option>
<option value='2'>Tidak Penting</option>
<option value='1'>Sangat Tidak Penting</option>
</select><br>";
}
?>
<label for="tipe">Tipe</label>
<br />
<select name="tipe" id="tipe">
<option value="pria">pria</option>
<option value="wanita">wanita</option>
<option value="campur">campur</option>
</select>
<br>
<input type="submit" value="submit">
</form>
</body>
</html>