-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsignup.php
executable file
·64 lines (61 loc) · 2 KB
/
signup.php
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
<?php
require 'functions.php';
if(isset($_POST["register"])) {
if (registrasi($_POST) > 0 ) {
echo "<script>
alert('Bos baru berhasil ditambahkan');
</script>";
} else {
echo mysqli_error($conn);
}
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HALAMAN REGISTRASI</title>
<script type="text/javascript" src="jquery-3.3.1.js"></script>
<script type="text/javascript" src="js/bootstrap.js"></script>
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="coba.css">
<!--icon logo-->
<link rel="icon" href="img/kopi.png">
<style>
.center{
width:350px;
height:auto;
margin:0 auto;
color: #ffff;
margin-top:40px;
background-color:rgba(23,20,20,0.52);
box-shadow:2px 2px 16px 0px #757575;
padding:40px;
}
</style>
</head>
<body>
<div id="signup">
<div class="center">
<div align="center">
<form action="" method="POST">
<div class="form-group">
<label for="username" style="text-align: left;">Username</label>
<input type="text" class="form-control" id="username" name="username" placeholder="Masukkan Username">
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" class="form-control" id="password" name="password" placeholder="Masukkan Password">
</div>
<div class="form-group">
<label for="password2">Konfirmasi Password</label>
<input type="password" class="form-control" id="password2" name="password2" placeholder="Konfirmasi Password">
</div>
<button type="submit" class="btn btn-primary" name="register">Register</button>
</form>
</div>
</div>
</div>
</body>
</html>