| gavintom   
         
  
 | 分享:        ▲
                    
                      ▼         
 
   <script language="JavaScript">function confirmLink(theLink, theSqlQuery)
 {
 // Confirmation is not required in the configuration file
 // or browser is Opera (crappy js implementation)
 if (confirmMsg == '' || typeof(window.opera) != 'undefined') {
 return true;
 }
 
 var is_confirmed = confirm(confirmMsg + ' :\n' + theSqlQuery);
 if (is_confirmed) {
 theLink.href += '&goal=3'                <------------ 改好了
 }
 
 return is_confirmed;
 }
 var confirmMsg  = '您确定要 '
 </script>
 
 /=============================
 <A href="sql_tool.php?num=<? echo $arr[$i][0]; ?>" onClick="return confirmLink(this, 'DELETE FROM 'post' WHERE 'p_NO' = '<? echo $arr[$i][0]; ?>'')">[删除]</a>
 
 //==============================
 
 问题1. 我这样子改完后 按"删除" 一样不会跳出小框框出现提示语(没yes or no可选)!
 2. 若我现在是在 a.php这写 而我按完 "删除" 后就会跳到sql_tool.php这页对吧!
 
 3. 另外呀..我在script 加了'&goal=3'这个
 但我连结出来时 sql_tool.php 没有goal=3这个耶..而num=xx这是有出现
 
 请指教
 
 |