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


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


   

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

        <div class="form-group">
            <label for="exampleInputEmail1">Kode Embed</label>
            <input value="<?php echo $r['link'];?>" type="text" name="link" class="form-control" placeholder="Kode Embed Youtube" 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>        
