复制代码 代码如下:
Untitled
<script> <BR><!-- <BR>function rec_delete(message){ <BR> return confirm(message); <BR>} <BR>//--> <BR></script>
$myrow[guest_name]="asdf\"";
$myrow[guest_name]="asdf'";
$guest_name=addslashes($myrow[guest_name]);
//$guest_name=str2js($myrow[guest_name],"'");
$dele_mess="真的要删除这个留言吗?\n留言姓名:$guest_name($myrow[guest_ip])"."\n留言时间:$myrow[guest_time]";
echo "<script>"; <BR>echo "delete_mess=\"$dele_mess\""; <BR>echo "<\/script>"; <BR>?> <BR><a href="<?php echo "$PHP_SELF?opt=delete"; ?>" onClick='return rec_delete(delete_mess)'>删除 <BR> <BR><BR></script>
http://www.bkjia.com/PHPjc/317642.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/317642.htmlTechArticle复制代码 代码如下: html head metahttp-equiv="Content-Type"content="text/html;charset=gb2312" titleUntitled/title scriptlanguage="javascript" !-- functionrec_delete(message)...