手机
当前位置:查字典教程网 >编程开发 >ASP教程 >CHR(10)表示换行,CHR(13)表示回车,CHR(32)表示空格
CHR(10)表示换行,CHR(13)表示回车,CHR(32)表示空格
摘要:文章标题:文章内容:th(str)为自定义函数,主要功能很简单:过滤字符。encode(str)也为自定义函数,主要功能是完整地显示被传递的...

<%

functionth(str)

str=replace(str,"妈的","MD")

str=replace(str,"靠","KAO")

th=str

endfunction

functionencode(str)

str=replace(str,">",">")

str=replace(str,"<","<")

str=Replace(str,CHR(32),"")

str=Replace(str,CHR(13),"")

str=Replace(str,CHR(10)&CHR(10),"</P><P>")

str=Replace(str,CHR(10),"<BR>")

encode=str

endfunction

%>

<%title=request.form("title")

content=request.form("content")%>

文章标题:<%=th(title)%><hr>

文章内容:<%=encode(th(content))%>

th(str)为自定义函数,主要功能很简单:过滤字符。encode(str)也为自定义函

数,主要功能是完整地显示被传递的信息。

CHR(10)表示换行,CHR(13)表示回车,CHR(32)表示空格。

附加功能:显示UBB代码。

即ubb.asp中含有ubb()函数。

增强的cnbruce.asp

<>

<%

functionth(str)

str=replace(str,"妈的","MD")

str=replace(str,"靠","KAO")

th=str

endfunction

%>

【CHR(10)表示换行,CHR(13)表示回车,CHR(32)表示空格】相关文章:

javascript asp教程第十课--global asa

存储过程里的递归 实现方法

如何采集静态文章系统

也谈跨站脚本攻击与防御

改进性能和样式的24个ASP 技巧

ASP编码优化技巧8则

ASP智能搜索的实现

ASP模板类代码

一个asp快速字符串连接类

动态CSS,换肤技术

精品推荐
分类导航