<input type="button" class="btn btn-danger" value="删除" onclick="if(confirm('确认?')==false)return false;location.href='?type=del&id=<?php echo $rows["id"]?>'" />
<?php
if($_GET["type"]=="del"){
$id=$_GET["id"];
mysql_query("delete from lipin where id in ($id)");
echo "<script language=javascript>javascript:window.history.back(-1);</script>";
}
?>
最简单的删除及确认
于 2019-11-27 08:24:28 首次发布