|
-
Nov 25th, 2000, 03:16 PM
#1
Thread Starter
Member
I have problem with text written in textarea like this and then stored into database. When I store text like this:
This is text I'm inserting into
database.
I'm using "new lines(enter)" which I can't display on my web page.
On my web page It looks like this:
This is text I'm inserting into database. I'm using "new lines(enter)" which I can't display on my web page.
What can I do to awoid this?
-
Nov 25th, 2000, 04:09 PM
#2
Monday Morning Lunatic
Either:
a) When storing the text in the database, replace all newlines with "<br>"
b) On the page, enclose the text in <pre></pre> tags.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Nov 25th, 2000, 04:22 PM
#3
Thread Starter
Member
How do I replace newline with <br>
How can I replace newline with "<br>" if I'm inserting text into textarea box and then inserting into database?
-
Nov 27th, 2000, 12:34 PM
#4
Code:
sHTMLText = Replace(sPlainText, vbcrlf, "<br>" & vbcrlf)
-
Nov 29th, 2000, 12:09 PM
#5
Thread Starter
Member
Thanks
Thanks. It works with <pre> </pre>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|