帮我看一下这一段代码

来源:百度知道 编辑:UC知道 时间:2024/05/19 10:50:34
If (CStr(Request("MM_insert")) = "form1") Then
If Trim(Request.Form("validatecode"))=Empty Or Trim(Session("cnbruce.com_ValidateCode"))<>Trim(Request.Form("validatecode"))then
Response.Redirect("erro2.asp")
response.end
end if

<tr valign="baseline">
<td align="right" style="height:50px">验证码:</td>
<td><input maxlength="4" size="9" style="float:left;border:#a7a6aa 1px solid; margin-top: 2px;height:23px;font-size:12px;">
<div style="float:left;margin:2px 2px 0 2px;"><img src="safecode.asp" id="safecode" /></div><div style="float:left;margin-top:7px;">[<a href="#" onClick="getcode();" title="点击刷新验证码">刷新</a>][<a href="#" onClick="voice();" title="

If Trim(Request.Form("validatecode"))括号里面应该是验证码输入文本域的名字,确实是填对了吗?<tr valign="baseline">
<td align="right" style="height:50px">验证码:</td>
<td><input maxlength="4" size="9" style="float:left;border:#a7a6aa 1px solid; margin-top: 2px;height:23px;font-size:12px;">
<div style="float:left;margin:2px 2px 0 2px;"><img src="safecode.asp" id="safecode" /></div><div style="float:left;margin-top:7px;">[<a href="#" onClick="getcode();" title="点击刷新验证码">刷新</a>][<a href="#" onClick="voice();" title="点击语音听取验证码">语音</a>]</div>
<object classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" class="OBJECT" id="voices" style="display:none;"><param name="Filename" value="&qu