-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdaftar.php
47 lines (41 loc) · 1.23 KB
/
daftar.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
<!DOCTYPE html>
<html lang="en">
<?php
include "koneksi.php";
include "fungsilogin.php";
include "icon.php";
head("OO!see", $icon);
echo "<body>";
if(isset($_POST['email'])){
$pass = md5($_POST['password']);
$sql = mysqli_query($connect, "INSERT INTO user (email, password) VALUES ('$_POST[email]', '$pass')");
if($sql){
alert();
}else{
alert2();
}
}
echo "<div class='global-container'>
<div class='card login-form shadow-lg p-3 mb-3 bg-white-rounded'>";
card_body("Register");
echo "<div class='card-text'>";
$type = array("email", "password");
$name = array("email", "password");
$placeholder = array("name@example.com", "");
$label = array("Email", "Password");
$action = "daftar.php";
$method = "POST";
form($type, $name, $placeholder, $label, $action, $method);
echo "<div class='text-center m-2 mb-1 p-0'>
<p class='m-1'>Have account? <a href='index.php' class='mb-0'> Sign in</a></p>
</div>
<p class='alternatif text-center'>Or register with:</p>";
$logo = array("fab fa-google", "fab fa-facebook-f", "fab fa-apple", "fab fa-twitter");
buttonlog($logo);
echo "</div>
</div>
</div>";
js();
echo "</body>";
?>
</html>