<?php
require("dbcon.php");
error_reporting( ~E_NOTICE );
session_start();
if(isset($_POST["btn-sub"])){
    $email= $_POST['email'];
    $password = $_POST['password'];
    $sql ="SELECT * FROM user WHERE email ='$email' and password ='$password'";
    $result = mysqli_query($db,$sql);
    $rows = mysqli_num_rows($result);
    if($rows == 1){
        $_SESSION['email'] = $email;
         header("location:users/index.php");
    }else {
        $status ="";
        $status = "<p class='alert alert-danger'>Incorrect Username or password.</p>".mysqli_error($db);
    }
}
?>



<!DOCTYPE html>
<html lang="en" class="h-100">


<!-- Mirrored from kripton.dexignzone.com/xhtml/page-login.html by HTTrack Website Copier/3.x [XR&CO'2014], Sun, 26 Mar 2023 22:59:37 GMT -->
<head>
    <meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="keywords" content="admin, dashboard" />
	<meta name="author" content="DexignZone" />
	<meta name="robots" content="index, follow" />
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta name="description" content="Kripton : Crypto Admin Dashboard  Bootstrap 5 Template" />
	<meta property="og:title" content="Kripton : Crypto Admin Dashboard  Bootstrap 5 Template" />
	<meta property="og:description" content="Kripton : Crypto Admin Dashboard  Bootstrap 5 Template" />
	<meta property="og:image" content="social-image.png"/>
	<meta name="format-detection" content="telephone=no">
    <title>Login - WithdrawProcess </title>
    <!-- Favicon icon -->
    <link rel="icon" type="image/png" sizes="16x16" href="images/favicon.png">
	<link href="/users/vendor/bootstrap-select/dist/css/bootstrap-select.min.css" rel="stylesheet">
    <link href="users/css/style.css" rel="stylesheet">

</head>

<body class="vh-100">
    <div class="authincation h-100">
        <div class="container h-100">
            <div class="row justify-content-center h-100 align-items-center">
                <div class="col-md-6">
                    <div class="authincation-content">
                        <div class="row no-gutters">
                            <div class="col-xl-12">
                                <div class="auth-form">
									<div class="text-center mb-3">
										<a href="index.html"><img src="images/logo-full.png" alt=""></a>
									</div>
                                    <h4 class="text-center mb-4">Login - WithdrawProcess</h4>
                                    <?php echo $status;?>
                                    <form method ="POST" action="">
                                        <div class="form-group">
                                            <label class="mb-1"><strong>Email</strong></label>
                                            <input type="email" name="email" class="form-control" Placeholder="Email">
                                        </div>
                                        <div class="form-group">
                                            <label class="mb-1"><strong>Password</strong></label>
                                            <input type="password" name="password" class="form-control"  placeholder="Password">
                                        </div>
                                        <div class="form-row d-flex justify-content-between mt-4 mb-2">
                                            <div class="form-group">
                                               <div class="form-check custom-checkbox ms-1">
													<input type="checkbox" class="form-check-input" id="basic_checkbox_1">
													<label class="form-check-label" for="basic_checkbox_1">Remember my preference</label>
												</div>
                                            </div>
                                            >
                                        </div>
                                        <div class="text-center">
                                            <button type="submit" name="btn-sub" class="btn btn-primary btn-block">Login</button>
                                        </div>
                                    </form>
                                    <div class="new-account mt-3">
                                        <p>Don't have an account? <a class="text-primary" href="register.php">Sign up</a></p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>


    <!--**********************************
        Scripts
    ***********************************-->
    <!-- Required vendors -->
    <script src="users/vendor/global/global.min.js"></script>
	<script src="users/vendor/bootstrap-select/dist/js/bootstrap-select.min.js"></script>
    <script src="users/js/custom.min.js"></script>
	<script src="users/js/deznav-init.js"></script>
	<script src="users/js/demo.js"></script>
    
</body>

<!-- Mirrored from kripton.dexignzone.com/xhtml/page-login.html by HTTrack Website Copier/3.x [XR&CO'2014], Sun, 26 Mar 2023 22:59:38 GMT -->
</html>


