PHP的留言板删除???
在360浏览器极速模式下为什么点击“删除留言”会跳转到'leave_reply.php“进行回复留言,,而不是'leave_delete.php”删除留言,回复留言按钮正...
在360浏览器极速模式下为什么点击“删除留言”会跳转到'leave_reply.php“进行回复留言,,而不是'leave_delete.php”删除留言,回复留言按钮正常,兼容模式下一切正常,能不能换个写法使两种模式都可以正常删除当前留言!!!
<input type="button" name="Submit3" value="审核" onClick="location.href='?action=shen&id=<?php echo $rows['id'];?>'" /><?php }?> <input type="button" name="Submit" value="回复留言" onClick="location.href='leave_reply.php?id=<?php echo $rows['id'];?>'" /> <input type="button" name="Submit2" value="删除留言" onclick="if(confirm('确认删除么?')){location.href='leave_delete.php?id=<?php echo $rows['id'];?>'}else{}"/>
--------------------------------------------------------------------------------------------------------------
delete
<?phpsession_start();if($_SESSION['username']==""){header("location:leave_login.php");}include("../inc/conn.php");$id=$_GET['id'];$sqldel="delete from liu where id=".$id;$resultdel=mysql_query($sqldel);?><script>alert("成功删除此留言");window.location="leave_admin.php";</script> 展开
<input type="button" name="Submit3" value="审核" onClick="location.href='?action=shen&id=<?php echo $rows['id'];?>'" /><?php }?> <input type="button" name="Submit" value="回复留言" onClick="location.href='leave_reply.php?id=<?php echo $rows['id'];?>'" /> <input type="button" name="Submit2" value="删除留言" onclick="if(confirm('确认删除么?')){location.href='leave_delete.php?id=<?php echo $rows['id'];?>'}else{}"/>
--------------------------------------------------------------------------------------------------------------
delete
<?phpsession_start();if($_SESSION['username']==""){header("location:leave_login.php");}include("../inc/conn.php");$id=$_GET['id'];$sqldel="delete from liu where id=".$id;$resultdel=mysql_query($sqldel);?><script>alert("成功删除此留言");window.location="leave_admin.php";</script> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询