level 1
寂寞の胆小鬼
楼主
源程序<%dim incept(),send()x=5y=xincept(0)=CStr(request.form("Name"))incept(1)=CStr(request.form("Mail"))incept(2)=CStr(request.form("Home"))incept(3)=CStr(request.form("Caption"))incept(x-1)=CStr(request.form("Text"))if len(incept(x-1))>300 then incept(x-1)=left(incept(x-1),300)if incept(1)="" or incept(1)="30字符内" then incept(1)="empty"if incept(2)="" or incept(2)="30字符内" then incept(2)="empty"else if left(incept(2),7)<>"http://" then incept(2)="http://" + incept(2)end iffor i=1 to x if incept(y-x)<>"empty" then s=len(incept(y-x))n=s+1for j=1 to s m=mid(incept(y-x),n-s,1) if m=" " then send(y-x)=send(y-x) + " "y=y+1n=n+1 else if m=chr(62) then send(y-x)=send(y-x) + ">" y=y+1 n=n+1else if m=chr(60) then send(y-x)=send(y-x) + "<"y=y+1n=n+1 else if m=chr(34) then send(y-x)=send(y-x) + """ y=y+1 n=n+1else if m=chr(38) then send(y-x)=send(y-x) + "&"y=y+1n=n+1 else send(y-x)=send(y-x) + my=y+1n=n+1 end ifend if end ifend if end ifnext else send(y-x)=incept(y-x)y=y+1 end ifnext%><%=send(0)%>
<%=send(1)%>
<%=send(2)%>
<%=send(3)%>
<%=send(4)%>可能是定义数组那出了点问题。还有在for循环里if语句判断的时候,这句话send(y-x)=send(y-x) + "这里的东西我都是用html转义符写的",百度输出的是后有点毛病。——发现个BUG哈哈。
2007年06月05日 04点06分
1
<%=send(1)%>
<%=send(2)%>
<%=send(3)%>
<%=send(4)%>可能是定义数组那出了点问题。还有在for循环里if语句判断的时候,这句话send(y-x)=send(y-x) + "这里的东西我都是用html转义符写的",百度输出的是后有点毛病。——发现个BUG哈哈。