-
Notifications
You must be signed in to change notification settings - Fork 0
/
registrasi.php
49 lines (43 loc) · 1.42 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
<?php
require 'function.php';
if (isset($_POST["register"])) {
if ( registrasi($_POST) > 0 ) {
echo "<script>
alert('User baru berhasil ditambahkan');
document.location.href = 'login.php';
</script>";
} else {
echo mysqli_error($conn);
}
}
?>
<!DOCTYPE html>
<html>
<head>
<title>REGISTRASI PAGE</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous" />
<link rel="stylesheet" href="stylelr.css">
</head>
<body>
<div class="fcontainer">
<div class="content">
<div class="masuk">
<h1>REGISTRASI USER</h1>
<form action="" method="post">
<input class="form-control" type="text" name="username" id="input" size="35" placeholder="Masukkan username.." required autofocus>
<br>
<input class="form-control" type="password" name="password" id="input" size="35" placeholder="Masukkan password.." required autofocus>
<br>
<input class="form-control" type="password" name="password2" id="input" size="35" placeholder="Masukkan konfirmasi password.." required autofocus>
<br>
<button type="submit" name="register" id="submit">SIGN UP</button>
</form>
</div>
<div class="clip">
<p class="asw">Sudah punya akun?<a href="login.php">Login</a></p>
<p class="anj">v1.2</p>
</div>
</div>
</div>
</body>
</html>