不执行的函数,请指教
提交的onclick=“return check()"function check()
{
if (document.form1.huohao1.value=="单击选择产品")
{
alert("还没有选择产品!");
return false;
}
if (document.form1.shulian1.value=="")
{
alert("请输入数量!");
return false;
}
if (document.form1.huiyuan3.value=="")
{
alert("会员没选择!")
return false
}
onsell()
}
</script>
<script language="javascript">
function onsell()
{
<%
fukuan_money=request("fukuan_money") "付款金额“
nowhuiyuan=request("huiyuan") ”会员号"
nowshulian=request("shulian") "数量"
nowprice=request("price") "单价:
set rs_sell=server.createobject("adodb.recordset")
strsql="select * from huiyuan where card="&huiyuan "会员表中会员号:card "错误:'card='操作符丢失
set rs_sell=conn.execute(strsql)
set rs_ks=server.CreateObject("adodb.recordset")
str="select sum(price - fukuan_money) from sell where zu=true and id_huiyuan="&huiyuan “错误:'id_huiyuan='操作符丢失
set rs_ks=conn.execute(str)
if (nowprice * nowshulian)-fukuan_money>0 then
if (rs_ks(0)+(nowprice * nowshulian)-fukuan_money)-rs_sell("sfz")>0 then "sfz:信用额度"
%>
{
alert("信用额度不足")
return false
}
<%
end if
end if
%>
}
</script>
错误处改为:
strsql="select * from huiyuan where card=47“
str="select sum(price - fukuan_money) from sell where zu=true and id_huiyuan=47"
错误没有了,就是不执行。
请问:
1、为什么不能用&huiyuan? 如何用变量?
2、为什么不执行onsell()函数?