瑞星卡卡安全论坛

首页 » 技术交流区 » 系统软件 » 请教如何段代码中增加对输入字符长度限制的验证
龙族天空 - 2007-9-18 16:53:00
.....................
<%if len(qysh)=0 then
response.write "<center>您还没有输入!</center>"
response.end
end if
if sssj="请选择" then
response.write "<center>您还没有输入!</center>"
response.end
end if
...................
源程序是这样的 其他部分我省略了 现在只是对qysh实现了在提交时:如果qysh未填
报:您还没有输入! 
要再加上一个对 qysh的 如果不是15位 报您的输入不正确 提示
该怎样写 
大家帮帮我 先谢谢大家了

[用户系统信息]Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; TheWorld)
gegeru - 2007-9-23 9:17:00
来帮助顶一下吧。
1
查看完整版本: 请教如何段代码中增加对输入字符长度限制的验证