Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: FLASH: URLEncoding
From: Brouwers, P.
Date: Thu, 23 Mar 2000 09:15:36 GMT

When pulling text from a database you would use HTML Encoding like the
following ASP function:

<%
Function Display(strDbText)
Dim strTemp
strTemp = Server.HTMLEncode(strDbText)
strTemp = Replace(strTemp, "xxxxxxx",
"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;", 1, -1, 1)
strTemp = Replace(strTemp, "xxxxxx",
"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;", 1, -1, 1)
strTemp = Replace(strTemp, "xxxxx",
"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;", 1, -1, 1)
strTemp = Replace(strTemp, "xxxx", "&nbsp;&nbsp;&nbsp;&nbsp;", 1,
-1, 1)
strTemp = Replace(strTemp, "xxx", "&nbsp;&nbsp;&nbsp;", 1, -1, 1)
strTemp = Replace(strTemp, vbTab, "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;",
1, -1, 1)
strTemp = Replace(strTemp, vbCrLf, "<BR>" & vbCrLf, 1, -1, 1)
Display = strTemp
End Function
%>

It will retain lay-out of your text, and display Bold,Italics etc, if you
inserted the proper HTML tags, <B> </B> . Well you know what I mean.

Text will be displayed as HTML text.

Peter

flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World�s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California

-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: URLEncoding, Cheri Harder

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]