-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsignup.php
52 lines (52 loc) · 1.5 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
<?php
require 'functions.php';
if(isset($_POST['signup'])){
if(signup($_POST)){
scriptAlert("akun berhasil dibuat");
header("Location: login.php");
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>journal | Sign Up</title>
</head>
<body>
<form action="" method="post">
<table border="1" cellspacing="0" cellpadding="">
<tr>
<th>Sign Up</th>
</tr>
<tr>
<td>
<input type="text" placeholder="Username" name="username" id="username">
</td>
</tr>
<tr>
<td>
<input type="password" name="password1" id="password1" placeholder="Password">
</td>
</tr>
<tr>
<td>
<input type="password" name="password2" id="password2" placeholder="Confirm Password">
</td>
</tr>
<tr>
<td align="center"><button type="submit" name="signup" id="signup">Sign Up!</button></td>
</tr>
<tr>
<td>
<p>sudah punya akun?
<a href="login.php">login sekarang</a>
</p>
</td>
</tr>
</table>
</form>
</body>
</html>