asp验证Ip格式的函数
验证Ip格式 '****************************** Function CheckIp(paR_strIp)CheckIp =0Dim tmpLoop, tmpStrtmpStr =paR_strIpIf tmpStr ="" Or IsNull(tmpStr) Then E
验证Ip格式 '****************************** Function CheckIp(paR_strIp)CheckIp =0Dim tmpLoop, tmpStrtmpStr =paR_strIpIf tmpStr ="" Or IsNull(tmpStr) Then E
'****************************** Function NewOrder(ArrStr) For i = 0 To Ubound(Split(ArrStr,","))If n > 0 ThenArrStr = Replace(ArrStr,n,0)End Ifsp
实现代码如下:结果是:abc,dge,gcg,die,dir如果是两个数组进行对比,去掉相同的数组元素:实现代码如下: "" Then dic.Add "_" & a(k), a(k)Nexta = Split(sarray, ",")For k=0 To UBound(a)If a(k)&
返回上一页,一般用在判断信息提交是否完全之后 '****************************** Sub GoBack() Response.write ("history.go(-1)") End Sub%> 重定向到另外的链接 '************************
'****************************** function comma(str)if not(isnumeric(str)) or str = 0 thenresult = 0elseif len(fix(str)) 0 thendec = mid(str,pos)end
'****************************** function MakePassword(byval maxlen)dim strnewpassdim whatsnext, upper, lower, intcounterrandomizefor intcounter = 1 to
'****************************** Public Function FormatDate(DateAndTime, para)On Error Resume NextDim y, m, d, h, mi, s, strDateTimeFormatDate = DateA
'****************************** function GetMax(str) num=split(str,",") max=num(0) for ii=0 to ubound(num) if cint(num(ii))>cint(max) then max=num
'****************************** Function Userip() Dim GetClientIP '如果客户端用了代理服务器,则应该用ServerVariables("HTTP_X_FORWARDED_FOR")方法 GetClientIP = Request.S
截取字符串特定部分内容函数 '****************************** Function GetKey(HTML,Start,Last) filearray=split(HTML,Start) filearray2=split(filearray(1),Last) GetKey=