Skip to content

Commit dbda62e

Browse files
authored
Add files via upload
Belajar php membuat form handling
1 parent ea96e0b commit dbda62e

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

form.php

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
8+
<link rel="stylesheet" href="style.css">
9+
<title>Form Get & Post</title>
10+
</head>
11+
12+
<body>
13+
14+
<div class="container">
15+
<div class="a">
16+
<h1>Halaman PHP Form Handling</h1>
17+
</div>
18+
19+
<div class="b">
20+
<form action="tampil.php" method="post" class="b">
21+
<ul>
22+
<label for="nama">Nama :</label>
23+
<br>
24+
<input type="text" id="nama" name="nama" placeholder="masukan nama...">
25+
</ul>
26+
<ul>
27+
<label for="email">Email :</label>
28+
<br>
29+
<input type="email" id="email" name="email" placeholder="masukan email...">
30+
</ul>
31+
<ul>
32+
<button type="submit">Submit!</button>
33+
</ul>
34+
</form>
35+
</div>
36+
37+
</div>
38+
39+
</body>
40+
41+
</html>

0 commit comments

Comments
 (0)