-
Notifications
You must be signed in to change notification settings - Fork 0
/
daftar.php
48 lines (43 loc) · 1.72 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
48
<?php
require_once "view/header.php";
if(isset($_POST['submit'])) {
$user = $_POST['user'];
$email = $_POST['email'];
$nama = $_POST['nama'];
$alamat = $_POST['alamat'];
$telepon = $_POST['telepon'];
$pass = md5($_POST['pass']);
$sqlsimpan = $pdo->query("INSERT INTO tamu VALUES('', '$user', '$email', '$nama', '$alamat', '$telepon', '$pass', '')");
echo"<script>swal({
type: 'success',
title: 'Registrasi Sukses!',
showConfirmButton: false,
backdrop: 'rgba(0,0,123,0.5)',
});
window.setTimeout(function(){
window.location.replace('login');
} ,1500);</script>";
}
?>
<div>
<img src="gambar/da5.png" width="100px" style="margin-left: -1110px; margin-top: -50px; margin-bottom: 20px;">
</div>
<div id="daftar" style="margin-top: 60px;">
<center>
<h3>Isi Sesuai Kartu Identitas Anda (KTP/SIM/Passport)</h3>
<hr>
<form method="post" action="daftar" enctype="multipart/form-data">
<input type="text" class="in" required="required" name="user" placeholder="Username">
<input type="Email" class="in" required="required" name="email" placeholder="Email">
<input type="text" class="in" required="required" name="nama" placeholder="Nama Lengkap">
<input type="text" class="in" required="required" name="alamat" placeholder="Alamat">
<input type="text" class="in" required="required" name="telepon" placeholder="Telepon">
<input type="password" class="in" required="required" name="pass" placeholder="Password">
<input type="submit" class="ins" name="submit" value="Daftar">
<input type="reset" class="ins" name="" value="Reset">
</form>
</center>
</div>
<?php
require_once "view/footer.php"
?>