[問題] 物件不支援此屬性或方法
這是function部分
function conf_del_ctg(sid){
if(confirm("確認刪除#" + sid + "分類?") == false){
return false;
}
delctg.submit();
}
然後這是其中一行的php
(太長..所以分行)
echo '</td><form name="delctg" method="post" action="admin.php?show=ctg">
<input type=hidden name="action" value="delete_ctg">
<td><input type=button value="刪除" onclick=conf_del_ctg('.$record[0].')>
</td></form></tr>';
按下按鈕就跑出就如標題般的錯誤
如果把 delctg.submit(); 給註解起來那就正常
請問問題出在哪~"~?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 163.14.9.105
推
06/05 18:48, , 1F
06/05 18:48, 1F
→
06/05 20:19, , 2F
06/05 20:19, 2F