<?php
include 'NoDirectPhpAcess.php';
?>

<?php
include 'Header.php';
?>


<div class="container">
    <div class="row justify-content-md-center">
	<div class="col-md-auto">
	    <form method="post" action="Script.php">
		<input type="hidden" name="frm_recover_password" value="true"/>
		Student number  <input type="text" name="sno" placeholder="Enter your student number" class="form-control" required="required" value="<?php echo htmlspecialchars($_SESSION['student_number']); ?>">
		<br/>
		Email  <input type="text" name="email" placeholder="Enter your email address" class="form-control" required="required" value="<?php echo htmlspecialchars($_SESSION['user_email']); ?>">
		<br/>
		<button type="submit" class="btn btn-primary">Recover</button>
	    </form>
	</div>
    </div>
    <?php

    if(isset($_SESSION['info_recover_password'])) {
	echo  '<hr><div class="alert alert-danger" role="alert">'.htmlspecialchars($_SESSION['info_recover_password']).'</div>';
	$_SESSION['info_recover_password'] = null;
    }

    ?>

</div>

<?php include 'Footer.php';?>