<div id="modal-foto" class="modal fade" role="dialog">
    <div class="modal-dialog modal-md">
      <div class="modal-content">
        <form enctype="multipart/form-data" method="post" action="upload1.php" autocomplete="off">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal">&times;</button>
          <h4 class="modal-title">Upload Profile</h4>
        </div>
          <div class="modal-body">
            
            <div class="mb-3">
              <input type="hidden" name="user_id" class="form-control" value="<?php echo $row['User_ID']; ?>">
            </div>

            <div class="mb-3">
              <label class="form-label">Foto</label>
              <input type="file" name="foto" class="form-control" >
            </div>
  
          </div>
          
          <div class="modal-footer">
            <button type="button" class="btn btn-info" data-dismiss="modal">Batal</button>
            <button type="submit" class="btn btn-primary" >Simpan</button>
          </div>
        </form>   
      </div>
    </div>
  </div> 