求帮忙看下这个表单提交的IE兼容性问题
问题:在IE6、7下提交可以,在8、9、10下点提交没有反应,不知道是什么问题,麻烦高手帮忙看下啊!谢了
<!-- #include file="../../init.asp" -->
<!-- #include file="../../include/md5.asp" -->
<%
dim id, shopname, name, mobile, address, intro, validCode
if Request.ServerVariables("REQUEST_METHOD") = "POST" Then
shopname = safe(request.Form("shopname"), 50)
name = safe(request.Form("name"), 10)
mobile = safe(request.Form("mobile"), 50)
address = safe(request.Form("address"), 150)
intro = safe(request.Form("intro"), 150)
validCode = ToLng(request.Form("validCode"))
if shopname = "" or name = "" or mobile = "" or address = "" or intro = "" or validCode = 0 then
Warning "您填写的内容有误,请重新填写!", ""
end if
if validCode <> ToLng(session("ahqmp11_GetCode")) then
Warning "您填写的验证码有误,请重新填写!", ""
end if
id = ado.GetMax("user_card_apply", "id", "") + 1
sql = "INSERT INTO user_card_apply(id, shopname, name, mobile, address, intro, state) VALUES (" & id & ", '" & shopname & "', '" & name & "', '" & mobile & "', '" & address & "', '" & intro & "', 0)"
ado.BeginTrans
ado.Execute(sql)
if err.Number <> 0 then
ado.RollbackTrans
set ado = nothing
Warning "注册失败,请检查您填写的注册信息是否正确!", ""
end if
ado.CommitTrans
Warning "您成功提交申请信息,我们的工作人员稍后会和您联系!", "/Products/"
end if
%>
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<base href="<%=CONST_WEBSITE_URL%>" />
<title><%=config_title%></title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link rel="stylesheet" href="images/base.css" />
<link rel="stylesheet" href="images/user.css" />
<script type="text/javascript" src="images/js/common.js"></script>
<script type="text/javascript" src="images/js/valid.js"></script>
<script language="javascript">
function doSubmit() {
var bz = true;
bz = userCardApplyValid("form_cardApply");
if (bz) {
document.form_cardApply.submit();
return false;
} else {
return false;
}
}
</script>
<style>
.tools2 { color:red; }
</style>
</head>
<body>
<!-- #include file="../../../Control/top_miniNavWrap.shtml" -->
<!-- #include file="../../../Control/top_topArea.shtml" -->
<div class="regist">
<div class="mt">
<h2>在线申请</h2>
<span></span>
</div>
<div class="mc">
<ul class="tab">
<li class="current"><a href="javascript:void(0);">会员卡申请</a></li>
</ul>
<form name="form_cardApply" id="form_reg" action="./user/account/card_apply/" class="formRegist" method="post">
<div class="item">
<label>店铺名称:</label>
<input name="shopname" id="ipt_shopname" type="text" size="28" class="text" maxlength="50" onFocus="of(this.name, 'of');" onBlur="of(this.name, 'ob')" />
<span class="tools" id="tos_shopname">请填写您的店铺名称</span>
</div>
<div class="item">
<label>负责人姓名:</label>
<input name="name" id="ipt_name" type="text" size="28" class="text" maxlength="10" onFocus="of(this.name, 'of');" onBlur="of(this.name, 'ob')" />
<span class="tools" id="tos_name">请填写负责人的姓名</span>
</div>
<div class="item">
<label>手机号码:</label>
<input name="mobile" id="ipt_mobile" type="text" size="28" class="text" maxlength="11" onFocus="of(this.name, 'of');" onBlur="of(this.name, 'ob')" />
<span class="tools" id="tos_mobile">手机号码不会公开,我们会严格保密。</span>
</div>
<div class="item">
<label>店铺地址:</label>
<input name="address" id="ipt_address" type="text" size="28" class="text" maxlength="20" onFocus="of(this.name, 'of');" onBlur="of(this.name, 'ob')" />
<span class="tools" id="tos_address">请填写店铺详细地址</span>
</div>
<div class="item" style="height:110px;">
<label>经营范围:</label>
<textarea name="intro" id="ipt_intro" class="text" onFocus="of(this.name, 'of');" onBlur="of(this.name, 'ob')" style="height:80px;"></textarea>
<span class="tools" id="tos_intro"></span>
</div>
<div class="item formRegistCode">
<label>验证码:</label>
<input name="validCode" id="ipt_validCode" type="text" size="10" class="text" style="width:80px;" onFocus="of(this.name, 'of');" onBlur="of(this.name, 'ob')" />
<span class="tools" id="tos_validCode"><img src="./include/GetCode.asp?t='+Math.random()+'" alt="点击刷新验证码" style="cursor:pointer;border:0;vertical-align:middle;" onclick="this.src='./include/GetCode.asp?t='+Math.random();form_reg.validCode.focus();" width="60" height="20" /> </span>
</div>
<div class="item formRegistBtn">
<label> </label>
<input type="button" value="提交申请" class="btnRegist" onclick="javascript:return doSubmit();" />
</div>
<div class="protocolCon">请认真填写您的资料,我们的工作人员会和您联系</div>
</form>
</div>
</div>
<!-- #include file="../../../Control/bottom_footer_black.shtml" -->
</body>
</html>