-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathform_penyulang.php
executable file
·29 lines (27 loc) · 1.04 KB
/
form_penyulang.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
<?php
include 'koneksi.php';
$coba2 = sqlsrv_query($koneksi, "SELECT * FROM [gi]");
?>
<form role="form" action="tambah_penyulang.php" method="post">
<div class="box-body">
<div class="form-group">
<label for="exampleInputEmail1">Nama Gardu Induk</label>
<select class="form-control" id="idgardu" name="idgardu">
<?php
while ($row2 = sqlsrv_fetch_array($coba2)) {
# code...
?>
<option value="<?php echo $row2['id_gi'];?>"><?php echo $row2['nama_gi']; ?></option>
<?php
}
?>
</select>
<label for="exampleInputEmail1">Nama Penyulang</label>
<input type="text" class="form-control" id="namapenyulang" placeholder="Nama Penyulang" name="namapenyulang">
</div>
</div>
<!-- /.box-body -->
<div class="box-footer">
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</form>