<button type="button" onclick="window.location.href='selesai.php?id=1'">Selesai</button>
<?php if (isset($_GET['id'])) { $id = $_GET['id']; // buat kode untuk update data ke database } // redirect kembali ke halaman list.php atau yang lain header("Location: list.php");