<?php include 'NoDirectPhpAcess.php'; ?> <?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ include 'Header.php'; ?> <div class="row"> <div class="col-md-4 list-group" style="margin:auto;"> <br> <h4 class="list-group-item active"> Reset my password </h4> <div class="list-group-item"> <div class="panel-body"> <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/> <input type="submit" class="btn-primary" value="Recover"> </form> <?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; } ?> <style> /*------------------------------------------------------------------ [ Login Button ]*/ .btn-primary { color: white; border-radius: 5px; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); background: rgb(75, 184, 240); padding:5px 102px; font-family: Poppins-Regular; font-size: 23px; line-height: 1.5; } </style>