Delete ]."/> Delete ].">
Home > Article > Backend Development > How to set delete confirmation in php
php method to set deletion confirmation: first open the code; then add the relevant code, the code is [15cd54247bc6beebe3575eaad3252233Delete5db79b134e9f6b82c0b36e0489ee08ed].
php method to set deletion confirmation:
First method:
<a href="javascript:if(confirm('确认删除吗?'))window.location='del.asp'">删除</a>
Second Type:
<script language="javascript"> <!-- function del_sure(){ var gnl=confirm("你真的确定要删除吗?"); if (gnl==true){ return true; } else{ return false; } } ---> </script> //调用 <a href="del.asp?id=<%=rs("id")%>" onclick="javascript:del_sure()">删除</a>
The third type:
<script language="javascript"> function confirmDel(str){ return confirm(str); } </script> <a href="delete.asp" onclick="return confirmDel('确定要删除吗')">删除</a>
Related learning recommendations: php programming (video)
The above is the detailed content of How to set delete confirmation in php. For more information, please follow other related articles on the PHP Chinese website!