<?php
require_once("header.php");
?>

<?php
if(isset($_POST['submit']))
{
	$email = $_POST['email'];
	$ex = $obj->forget_password($email);
	if($ex){
		echo'<script>alert("Mail Send.")</script>';
	}
	else{
		echo'<script>alert("Mail Not Send Please Check Your Email Id.")</script>';
	}
}

?>
<body class="no-footer">
    <div id="layoutAuthentication">
        <div id="layoutAuthentication_content">
            <main>
                <div class="container">
                    <div class="row justify-content-center">
                        <div class="col-lg-5">
                            <div class="card shadow-lg border-0 rounded-lg mt-4">
                            	

                                <div class="card-header"><h3 class="text-center font-weight-light">Forgot Password</h3></div>
                                <div class="card-body">
                                	<p>Lost your password? Please enter your email address. You will receive a link to create a new password via email.</p>
                                    <form method="POST">
										<p><font color="red"><?php echo $_SESSION['error_msg'];?></font></p>
										<div class="form-group">
                                            <label>Enter Email ID</label>
                                            <input class="form-control py-4" type="email" placeholder="Enter Email Id" name="email"/>
                                        </div>
										
										
                                        
                                        <div class="form-group d-flex align-items-center justify-content-between mt-4 mb-0">
                                            <button class="btn btn-primary" type="submit" name="submit">Reset Password</button>
                                             
                                    </div>   
                                    </form>
                                </div>
                              
                            </div>
                        </div>
                    </div>
                </div>
            </main>
        </div>
        
    </div>
	

<?php require_once("footer.php");?>
