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


    <form action="updatefile" method="POST">
            
        <input type="hidden" name="id_materi" value="<?php echo $r['id_materi'];?>">
        <input type="hidden" name="id_unit" value="<?php echo $unit;?>">


   

        <div class="form-group">
            <label for="exampleInputEmail1">Judul File/Artikel</label>
            <input value="<?php echo $r['judul_materi'];?>" type="text" name="judul_materi" class="form-control" placeholder="Masukkan judul artikel" 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>        
