寻求帮助,这个asp代码如何写

2025-12-15 23:53:05
推荐回答(2个)
回答1:

if <%=session("ycode")%><>form1.yanzheng.value then
errinfo = "验证码错误,请重输!"
end if

这个去掉, 验证验证码不是在JS代码里,你在递交后,
第一句就验证
<%
if session("ycode")<> request("yanzheng") then
response.write "验证码错误,请重输!"
response.end
end if
%>

回答2:

if(Session["CheckCode"].ToString () == txt_CheckCode.Text )
{
Response.Write ("");
}