-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinput_update.php
More file actions
34 lines (32 loc) · 1023 Bytes
/
input_update.php
File metadata and controls
34 lines (32 loc) · 1023 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
33
34
<?php
require "koneksi.php";
require "class.php";
$db = database::connect();
$mahasiswa = new Mahasiswa($db);
$mahasiswa->npm = $_GET['npm'];
$mhs = $mahasiswa->getDataMahasiswa();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>INPUT Update PDO</title>
</head>
<body>
<form method="POST" action="update_PDO.php">
<input type="hidden" width="200px" name="npm" value="<?php echo $mhs->npm?>">
<table>
<tr>
<td>Nama</td><td><input width="200px" name="nama" placeholder="Masukan nama" value="<?php echo $mhs->nama?>"></input></td>
</tr>
<tr>
<td>Semester</td><td><input width="200px" name="semester" placeholder="Masukan Semester" value="<?php echo $mhs->semester?>"></input></td>
</tr>
<tr>
<td>Umur</td><td><input width="200px" name="umur" placeholder="Masukan Umur" value="<?php echo $mhs->umur?>"></input></td>
</tr>
</table>
<button type="submit">oke</button>
</form>
</body>
</html>