Home >Backend Development >PHP Problem >How to delete prompt information in php

How to delete prompt information in php

藏色散人
藏色散人Original
2020-10-15 11:18:012982browse

How to implement deletion prompt information in php: 1. Implement the deletion prompt through the confirm method; 2. Use the del_sure method to implement the deletion prompt; 3. Implement the deletion prompt through the confirmDel method

How to delete prompt information in php

Recommended: "PHP Video Tutorial"

php simple deletion tips

The following are compiled by other netizens, they are similar. Generally, a confirmation button pops up to determine whether to continue to the deletion page below.

The first type:

<a href="javascript:if(confirm(&#39;确认删除吗?&#39;))window.location=&#39;del.asp&#39;">删除</a>

The 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(&#39;确定要删除吗&#39;)">删除</a>

php determine space function ctype_space

The above is the detailed content of How to delete prompt information in php. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn