<title>Log In html, body { height: 100%; } body { display: -ms-flexbox; display: -webkit-box; display: flex; -ms-flex-align: center; -ms-flex-pack: center; -webkit-box-align: center; align-items: center; -webkit-box-pack: center; justify-content: center; padding-top: 40px; padding-bottom: 40px; background-color: #f5f5f5; } .form-signin { width: 100%; max-width: 330px; padding: 15px; margin: 0 auto; } .form-signin .checkbox { font-weight: 400; } .form-signin .form-control { position: relative; box-sizing: border-box; height: auto; padding: 10px; font-size: 16px; } .form-signin .form-control:focus { z-index: 2; } .form-signin input[type="email"] { margin-bottom: -1px; border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .form-signin input[type="password"] { margin-bottom: 10px; border-top-left-radius: 0; border-top-right-radius: 0; } prepare($query); $email=$_POST['email']; $password=$_POST['pass']; $status=$_POST['status']; // bind the parameters $stmt->bindParam(':email', $email); $stmt->execute(); $num = $stmt ->rowCount(); } ?> " method="post"> fetch(PDO::FETCH_ASSOC); extract($row); //whether the password matches or not. if ($pass == $password){ echo "<div class="alert alert-success">Log In Successful, Welcome!</div>"; }else{ echo "<div class="alert alert-danger">Password Does Not Match</div>"; } //whether the password matches or not. if ($status == 'Active'){ echo "<div class="alert alert-success">Log In Successful, Welcome!</div>"; }else{ echo "<div class="alert alert-danger">Your Account Is Inactive.</div>"; } } //email does not exist in table else if($num == 0){ echo "<div class="alert alert-danger">Email Does Not Exist</div>"; } ?> <h1 class="mb-3 font-weight-normal">Log In</h1> Email address Password <div class="checkbox mb-3"> Remember me </div> Log In <p class="mt-5 mb-3 text-muted">© 2020-2021</p>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)