2
调用PHP脚本现在我有这样的:使用Ajax和jQuery
echo "<a href='misc/removeWallComment.php?id=" .
$displayWall['id'] . "&uID" . $displayWall['uID'] . "&BuID" .
$displayWall['BuID'] . "' title='ta bort inlägg'>
<span class='removeWallComment'></span> </a>";
它的链接,当您单击删除评论图标。
现在,它去misc/removeWallComment.php
和回声“评论删除”。但我想将其与我目前的网站进行整合,所以你不会去另一个页面删除这个纪念品。有了这个,我想到了使用一个AJAX调用removeWallComment.php
。现在
,你的链接看到它需要三个变量,id
,uID
和BuID
,我想POST
,不GET
发送,使用户无法看到地址栏的变量。成功时,它应该提醒你。
我该怎么做?