-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedit.php
More file actions
55 lines (44 loc) · 1.67 KB
/
edit.php
File metadata and controls
55 lines (44 loc) · 1.67 KB
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
<?php
include("php/koneksi.php");
$id = $_GET['id'];
$ins=mysqli_query($host, "SELECT * FROM tb_soal WHERE id='$id'");
while ($row=mysqli_fetch_array($ins))
{
?>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<form class="user" action="php/edit.php" method="post">
<input type="hidden" name="id" value="<?php echo $row['id']; ?>">
<div class="form-group">
<h5>materi</h5>
<input type="text" name="name" class="form-control form-control-user" id="exampleFirstName" value="<?php echo $row['nama']; ?> required">
</div>
<div class="form-group">
<h5>waktu</h5>
<input type="text" name="waktu" class="form-control form-control-user" id="exampleFirstName" value="<?php echo $row['waktu']; ?>" required>
</div>
<div class="form-group">
<h5>soal_1</h5>
<input type="text" name="sl_1" class="form-control form-control-user" id="exampleFirstName" value="<?php echo $row['sl_1']; ?>" required>
</div>
<div class="form-group">
<h5>jawab_1</h5>
<input type="text" name="jwb_1" class="form-control form-control-user" id="exampleFirstName" value="<?php echo $row['jwb_1']; ?>" required>
</div>
<div class="form-group">
<h5>soal_2</h5>
<input type="text" name="sl_2" class="form-control form-control-user" id="exampleFirstName" value="<?php echo $row['sl_2']; ?>" required>
</div>
<div class="form-group">
<h5>jawab_2</h5>
<input type="text" name="jwb_2" class="form-control form-control-user" id="exampleFirstName" value="<?php echo $row['jwb_2']; ?>" required>
</div>
<input type="submit" name="submit" class="btn btn-primary btn-clrDasar btn-user btn-block" value="submit">
</form>
</body>
</html>
<?php
} ?>