通过本文主要向大家介绍了asp获取当前用户名,asp检测用户名,asp多用户商城,asp多用户商城系,asp用户登录代码等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
<%
'******************************
'函数:IsValidUserName(byVal UserName)
'参数:UserName,用户名称
'作者:阿里西西
'日期:2007/7/15
'描述:验证用户名是否包含有非法字符,不含非法字符返回:true
'示例:IsValidUserName(byVal UserName)
'******************************
Function IsValidUserName(byVal UserName)
Dim i,c
IsValidUserName = True
For i = 1 To Len(UserName)
c = Lcase(Mid(UserName, i, 1))
If InStr("$!<>?#^%@~`&*();:+='"" ", c) > 0 Then
IsValidUserName = False
Exit Function
End IF
Next
End Function
%>
</div>
'******************************
'函数:IsValidUserName(byVal UserName)
'参数:UserName,用户名称
'作者:阿里西西
'日期:2007/7/15
'描述:验证用户名是否包含有非法字符,不含非法字符返回:true
'示例:IsValidUserName(byVal UserName)
'******************************
Function IsValidUserName(byVal UserName)
Dim i,c
IsValidUserName = True
For i = 1 To Len(UserName)
c = Lcase(Mid(UserName, i, 1))
If InStr("$!<>?#^%@~`&*();:+='"" ", c) > 0 Then
IsValidUserName = False
Exit Function
End IF
Next
End Function
%>
</div>