View Single Post
Old 08-14-2002, 09:33 AM   PM User | #4
Phip
Registered User

 
Join Date: Jun 2002
Location: Arizona
Posts: 175
Thanks: 0
Thanked 0 Times in 0 Posts
Phip is an unknown quantity at this point
i did some research and this is finally what i came up with:

<%

function cleanString(string_clean)
string_clean = Trim(string_clean)
string_clean = Server.HTMLEncode(string_clean)
string_clean = Replace(string_clean, chr(13), "<br />")
cleanString = string_clean
End Function

' If you are using get function use:
' Response.Write(cleanString(Request.QueryString("message")))

Response.Write(cleanString(Request.Form("message")))

%>

it works like a.. perfect script

Note: "message" is the name of the string i was getting form a form to process. You can see my progress at http://chronicyouth.com/news/?id=1

Last edited by Phip; 08-14-2002 at 09:42 AM..
Phip is offline   Reply With Quote