<?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="updatesiswa" method="POST">
            
        <input type="hidden" name="id_siswa" value="<?php echo $r['id_siswa'];?>">


   

        <div class="form-group">
            <label for="exampleInputEmail1">Nama Siswa</label>
            <input value="<?php echo $r['nama_lengkap'];?>" type="text" name="nama_lengkap" class="form-control" placeholder="Masukkan nama siswa" required="required">
        </div>

        <div class="form-group">
            <label for="username">Username</label>
            <input value="<?php echo $r['username'];?>" type="text" name="username" class="form-control" placeholder="Username" required="required">
        </div>


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

       
        </form>        
