merge from notif to dev #6
@ -8,7 +8,7 @@ if(isset($_POST['login'])){
|
||||
$password = $_POST['password'];
|
||||
|
||||
if(empty($username)||empty($password)){
|
||||
$msg = "data harus diisi!";
|
||||
$msg = "Data Harus Lengkap !";
|
||||
echo "<script>showNotif(" . json_encode($msg) . ");</script>";
|
||||
}else{
|
||||
$sql = "SELECT * FROM users WHERE username =?";
|
||||
@ -23,14 +23,15 @@ if(isset($_POST['login'])){
|
||||
$_SESSION['loggedin']='true';
|
||||
$_SESSION['username']=$user['username'];
|
||||
$_SESSION['id']=$user['id'];
|
||||
header("location:leaderboard.php");
|
||||
header("location:onboard.php");
|
||||
exit();
|
||||
}else{
|
||||
$msg = "Password Salah !";
|
||||
echo "<script>showNotif(" . json_encode($msg) . ");</script>";
|
||||
}
|
||||
}else{
|
||||
echo "username salah";
|
||||
$msg = "Username tidak ditemukan !";
|
||||
echo "<script>showNotif(" . json_encode($msg) . ");</script>";
|
||||
}
|
||||
$stmt->close();
|
||||
}
|
||||
|
||||
@ -3,20 +3,20 @@
|
||||
<style>
|
||||
.notif {
|
||||
position: fixed;
|
||||
top: 100px;
|
||||
top: 50px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
background-color: #00000060;
|
||||
background-color: #b2db0e1c;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
color: yellow;
|
||||
padding: 12px 18px;
|
||||
width: 500px;
|
||||
height: 200px;
|
||||
font-size: 30px;
|
||||
border: 1px solid white;
|
||||
width: 300px;
|
||||
height: 25px;
|
||||
font-size: 20px;
|
||||
border: 1px solid yellow;
|
||||
border-radius: 8px;
|
||||
opacity: 0;
|
||||
transition: .3s;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user