方法一: str=Request("string") temp=Server.URLEncode(str) if str=temp then response.write "你输入的不是英文或数字" end if
文法二: str=Request("string") for i=1 to len(str) a=mid(string,i,1) if ((asc(a)<"0" and asc(a)>"9" ) or (asc(a)<asc("a") and asc(a)>asc("z"))) then response.write "你输入的不是英文或数字" end if next i