我试过了,,是经手人这部分出错,,但找不出原因.
终于解决了,,但我还是不明白.
我只是把变量"handle"换了一个名,叫"men"
谁可以解释一下呀?
<%
sellname=request.form("sellname")
sellprice=replace(request.form("sellprice")," ","")
amount=replace(request.form("amount")," ","")
men=request.form("handle")
textarea=replace(request.form("textarea")," ","")
selldate=date()
if sellprice="" or amount="" then
response.Write("输入完整数据,请<a href='sell.asp'>返回</a>再试!")
response.end
else
sellprice=Cint(sellprice)
amount=Cint(amount)
conn.execute("insert into sell(名称,售价,数量,销售日期,经手人,备注) values('"&sellname&"',"&sellprice&","&amount&",'"&selldate&"','"&men&"','"&textarea&"')")
end if
%>