-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinput_insert.php
More file actions
35 lines (33 loc) · 927 Bytes
/
input_insert.php
File metadata and controls
35 lines (33 loc) · 927 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
35
<?php
require "koneksi.php";
require "class.php";
$db = Database::connect();
$mahasiswa = new Mahasiswa($db);
$rows = $mahasiswa->getDataMahasiswa();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>INPUT INSERT PDO</title>
</head>
<body>
<form method="POST" action="insert_PDO.php">
<table>
<tr>
<td>NPM</td><td><input width="200px" name="npm" placeholder="Masukan NPM"></input></td>
</tr>
<tr>
<td>Nama</td><td><input width="200px" name="nama" placeholder="Masukan nama"></input></td>
</tr>
<tr>
<td>Semester</td><td><input width="200px" name="semester" placeholder="Umur"></input></td>
</tr>
<tr>
<td>Umur</td><td><input width="200px" name="umur" placeholder="Masukan Umur"></input></td>
</tr>
</table>
<button type="submit">oke</button>
</form>
</body>
</html>