-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphp3.php
More file actions
89 lines (87 loc) · 2.86 KB
/
php3.php
File metadata and controls
89 lines (87 loc) · 2.86 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/bootstrap.min.css"/>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</head>
<body>
<nav class="navbar navbar-expand-sm bg-light navbar-light">
<a class="navbar-brand" href="#">Digital Talent</a>
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="#">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">About</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbardrop" data-toggle="dropdown">
Programming
</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">PHP</a>
<a class="dropdown-item" href="#">ASP</a>
<a class="dropdown-item" href="#">AJAX</a>
<a class="dropdown-item" href="#">jQuery</a>
<a class="dropdown-item" href="#">MYSQL</a>
<a class="dropdown-item" href="#">CSS</a>
</div>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbardrop" data-toggle="dropdown">
Software
</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="#">PHP</a>
<a class="dropdown-item" href="#">ASP</a>
<a class="dropdown-item" href="#">AJAX</a>
<a class="dropdown-item" href="#">jQuery</a>
<a class="dropdown-item" href="#">MYSQL</a>
<a class="dropdown-item" href="#">CSS</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Contact Us</a>
</li>
</ul>
</nav>
<div style="padding:100px;">
<h2>Form Dengan Bootstrap</h2>
<br>
<div class="form-group">
<form action="cek3.php" method="POST">
<h5>Nama Anda</h5>
<input class="form-control" style="width: 100%;" type="text" name="nama" required>
<br><br>
<h5>Alamat Anda</h5>
<textarea class="form-control" style="width: 100%;" rows="4" name="alamat" required></textarea>
<br><br>
<h5>Tempat</h5>
<input class="form-control" style="width: 100%;" type="text" name="tmpt" required>
<br><br>
<h5>Pilih Jenis Kelamin</h5>
<select class="form-control form-control-lg" style="width: 100%;" name="sex">
<option value="Laki-Laki">Laki-Laki <br>
<option value="Perempuan">Perempuan <br>
</select>
<br><br>
<h5>Usia Anda</h5>
<input class="form-control" style="width: 100%;" type="text" name="usia" required>
<br><br>
<input class="btn btn-primary" type="submit" name="submit" value="Simpan">
</form></div>
</div>
<?php
echo $_POST['nama'];
echo $_POST['alamat'];
echo $_POST['tmpt'];
echo $_POST['sex'];
echo $_POST['usia'];
echo "<br>";
echo $_GET['submit'];
?>
</body>
</html>