Input from <TEXTAREA>
Hey guys!
I am receiving input from a text area. The input could be up to 1000 words. I am then inserting the input into a database.
The problem occurs when I display the input on an HTML page.
All of the line breaks are gone and all of the text is jumbled.
Any ideas?
BTW I am using ASP.
Thanks,
Mike
Blessed is the man who fears the LORD, who delights greatly in his commandments. Psalms 112:1
mairving posted this at 20:54 — 14th August 2003.
They have: 2,256 posts
Joined: Feb 2001
use nl2br() which will insert a < BR> everytime it encounters a carriage return.
Oops, that is for PHP. Sorry I am not an ASP programmer.
Mark Hensler posted this at 01:48 — 15th August 2003.
He has: 4,048 posts
Joined: Aug 2000
strText = Replace(strText, vbCrLf, "<br />" & vbCrLf)
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.