Keeping User paragraphs (VBS)
Are you making a Content Management System?
Are you making a Forum?
Then I'm sure that you are about to ask:
How do I display the Text as the user entered it? because it shows on the browser as one big block of text...
the answer to this question can be found in the replace function...
Usually, you make a recordset and whatnot, then you print out the value of the field on the page like this
<%= rs.fields("msgBody").value %>
Change that, to this, and you're set...
<%= replace(rs.fields("msgBody").value, VbCrLf, "<br>") %>
That takes the line breaks, and replaces them with HTML breaks...
hope that helps someone,
Joel Martinez
Comments
For PHP user
You must me logged in to write a comment.