-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
28 lines (27 loc) · 1.09 KB
/
index.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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Ujian Berbasis Komputer</title>
<link rel="stylesheet" href="http://127.0.0.1/ujian/css/style.css">
<link href='https://fonts.googleapis.com/css?family=Arizonia' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
</head>
<body>
<form class="box" action="login.php" method="post">
<h1>Login</h1>
<input type="text" name="username" placeholder="Username">
<input type="password" name="password" placeholder="Password">
<input type="submit" value="Login">
</form>
<?php if(isset($_GET['pesan'])) { ?>
<div class="error">
<label>Oopps... <?php echo $_GET['pesan']; ?></label>
</div>
<?php } ?>
<?php if(isset($_GET['pesan'])) { ?>
<label style="color:red;"><?php echo $_GET['pesan']; ?></label>
<?php } ?>
<script type="text/javascript" src="http://127.0.0.1/ujian/js/main.js"></script>
</body>
</html>