<?php 
session_start();
include"../../../../inc/conn.php";
$id         = $_POST['id'];
$q=mysqli_query($connect,"select * from tb_siswa where id_siswa='".$id."'");
$r=mysqli_fetch_array($q);
?>


    <form action="updatepasswordsiswa" method="POST">
            
        <input type="hidden" name="id_siswa" value="<?php echo $r['id_siswa'];?>">
   

        <div class="form-group">
            <b><h3><?php echo $r['nama_lengkap'];?></h3><b>
        </div>
        <hr>


        <div class="form-group">
            <label for="password1">Password</label>
            <input type="password" name="password1" class="form-control" placeholder="Masukkan password" required="required">
        </div>

        <div class="form-group">
            <label for="password2">Ulangi Password</label>
            <input type="password" name="password2" class="form-control" placeholder="Masukkan password" required="required">
        </div>


        <div class="modal-footer justify-content-between">
              
              <button type="submit" class="btn btn-danger">Ganti Password</button>
              <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        
        </div>

       
        </form>        
