Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Writing SQL values to an ASp page using HTML formatting

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-02-25 : 10:57:01
melanie writes "I have a self edit system that allows users to enter their own news stories.

The news page uses:
Response.write SQLtoHTML (rstemp("NewsItemBodyText"))
to write the text to the news page

Function SQLtoHTML( text )

SQLtoHTML = Server.HTMLEncode( text )
SQLtoHTML = Replace( SQLtoHTML, Chr(13) & Chr(13), "

" )
SQLtoHTML = Replace( SQLtoHTML, Chr(13), "" )

End Function

This allows paragraphs to be put in the text box and saves them in the SQL database. The user now wants to be able to add other html formatting eg bold bullet points etc any ideas how? How would the user write the info to the database? It must work in both Netscape and IE browsers"

   

- Advertisement -