mystr="1,2,3,4,5"
mystr=split(mystr,",")
for i=0 to ubound(mystr)
response.write mystr(i)
next
'返回值为123456
mystr="xlei.net/http/student/x/index.asp"
mystr=split(mystr,"/http/student")
for i=0 to ubound(mystr)
response.write mystr(i)
next
'返回值为xlei.net/x/index.asp
mystr="1批在2批在3批在4批是在5批在"
mystr=split(mystr,"批在")
for i=0 to ubound(mystr)
response.write mystr(i)
next
'返回值为1234批是在56
username=replace(trim(request.form("username")),"'","''")
password=replace(trim(request.form("password")),"'","''")
if instr(username,"%") or instr(username,"#") or instr(username,"?") or instr(username,"|") then
response.write "script. language=javascript>alert('您的姓名含有非法字符!');history.back()/script>"
response.end
end if
if instr(password,"%") or instr(password,"#") or instr(password,"?") or instr(password,"|") then
response.write "script. language=javascript>alert('您的密码含有非法字符!');history.back()/script>"
response.end
end if