幫我糾正錯誤,謝謝
saf9 2002-05-15 12:49:25 <form action="register_fset.asp"><input name=product_name><input type=button onclick="dd()"></form>
<% dim id
id=rs.MaxRecords+1 //上面我沒寫了
dim product_name
dim product_id
product_id=parent.mainFrame.request.form("protype")//復合窗口
product_id=parent.mainFrame.request.form("protypeid")
%>
<script language="javascript">
///// 新怎產品類別////////////////////
function add_product()
{
var parent_id
var product_name
product_name=document.form.product_name.value
parent_id=parent.mainFrame.document.formItem.protypeid.value//得到父節點的id
//alert(parent_id)
if (parent_id=="" || product_name=="" )
{ alert("請選擇新產品的父節點,或者想要增加的產品名")
}else{
<% strsql="insert into rel_case_no values("& id & "," & product_name & "," & product_id &)"
objconn.Execute(strsql)
%>
form.submit////相當入庫完了之後,在運行action="register_fset.asp"
}
}
</script>