CHR (10) indicates line feed, CHR (13) indicates carriage return, and CHR (32) indicates space.

Source: Internet
Author: User

<%
Function th (str)
Str = replace (str, "Mom", "MD ")
Str = replace (str, "by", "KAO ")
Th = str
End function

Function encode (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
End function
%>

<% Title = request. form ("title ")
Content = request. form ("content") %>

Article title: <% = th (title) %> Article content: <% = encode (th (content) %>

Th (str) is a user-defined function. Its main function is simple: Filter characters. Encode (str) is also a custom function.
Number, the main function is to completely display the transmitted information.
CHR (10) indicates line feed, CHR (13) indicates carriage return, and CHR (32) indicates space.

Additional function: displays the UBB code.
Ubb. asp contains the ubb () function.

Enhanced cnbruce. asp

<! -- # Include file = "http://www.cnbruce.com/blog/ubb.asp" -->
<%
Function th (str)
Str = replace (str, "Mom", "MD ")
Str = replace (str, "by", "KAO ")
Th = str
End function
%>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.