根据SELECT的选择,显示文本框。
1、
<select name="zt" id="zt">
<option value="0" <%if zt="0" then%> selected="selected"<%end if%>>AAAAA</option>
<option value="1" <%if zt="1" then%> selected="selected"<%end if%>>BBBBB</option>
<option value="2" <%if zt="2" then%> selected="selected"<%end if%>>CCCCC</option>
<option value="3" <%if zt="3" then%> selected="selected"<%end if%>>DDDDD</option>
<option value="4" <%if zt="4" then%> selected="selected"<%end if%>>EEEEE</option>
</select>
<input name="truename" id="id" value="" />
我需要选择CCCCC的时候,<input name="truename" id="id" value="" />文本框显示出来。
其他时候都是隐藏的。
2、ASP的长度是这样判断吗?
if len(sfz)<15 or len(username)>18 then
response.Write("身份证号码输入错误")
response.redirect(request.ServerVariables("HTTP_REFERER"))
end if