-
Notifications
You must be signed in to change notification settings - Fork 0
/
buatakun.php
97 lines (49 loc) · 1.03 KB
/
buatakun.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
session_start();
if (isset($_SESSION["logged_in"]) AND $_SESSION["logged_in"]==true)
{
header("location:home.php");
}
else
{
if (isset($_GET["status"]))
{
if ($_GET["status"] == "daftargagal")
{
$pesan="Pembuatan akun gagal!<br><br>";
}
else
{
$pesan="";
}
}
else
{
$pesan="";
}
echo
"
<!DOCTYPE html>
<html>
<head>
<title>Buat Akun Baru - Tel-Med</title>
</head>
<body>
<h1>Buat akun <a href='index.php'>Tel-Med<a/a> baru</h1>
".$pesan."
<form action='daftarkan_akun.php' method='POST'>
Nama Lengkap: <input type='text' name='nama_lengkap'/>
<br>
Alamat Email: <input type='email' name='email'/>
<br>
Password: <input type='password' name='password'/>
<br>
Ulangi Password: <input type='password' name='password2'/>
<br>
<input type='submit' value='Daftar!'/>
</form>
</body>
</html>
";
}
?>