-
Notifications
You must be signed in to change notification settings - Fork 0
/
registrasi.php
62 lines (56 loc) · 1.91 KB
/
registrasi.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
<?php
require 'function.php';
if(isset($_POST['register'])){
if(Registrasi($_POST) > 0) {
echo "
<style>
alert('User berhasil ditambahkan');
</style>
";
}else {
echo mysqli_error($conn);
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title> Form Registrasi </title>
<script type="text/javascript" src="js/bootstrap.js"></script>
<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
<style>
label {
display : block;
}
</style>
</head>
<body>
<h1> Halaman Registrasi </h1>
<br>
<form class="form-horizontal" action="" method="post">
<div class="form-group">
<label for="inputName" class="col-sm-1 control-label">Username : </label>
<div class="col-sm-3">
<input type="text" class="form-control" id="username" placeholder="Masukan Username" name="username" required>
</div>
</div>
<div class="form-group">
<label for="inputPassword3" class="col-sm-1 control-label">Password : </label>
<div class="col-sm-3">
<input type="password" class="form-control" id="password" placeholder="Masukan Password" name="password" required>
</div>
</div>
<div class="form-group">
<label for="inputPassword3" class="col-sm-1 control-label">Password : </label>
<div class="col-sm-3">
<input type="password" class="form-control" id="password2" placeholder="Masukan ulang password" name="password2" required>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-1 col-sm-3">
<button type="submit" class="btn btn-primary" name="register">Registrasi</button>
</div>
</div>
</form>
</body>
</html>