Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

create breaks from a textarea 1

Status
Not open for further replies.

tyutghf

Technical User
Apr 12, 2008
258
0
0
GB
I have a textarea as part of a form. I don`t want to allow html in the textarea but I do want line breaks to be preserved. How do I go about this?

i.e. if someone types

"
hello
my name
is
bob
"

I want the line breaks to be preserved when the email is sent but at present the output will be "hello my name is bob"

I presume I need to add something to request.form("body") to achieve what I want? Maybe replace, but what do I replace on?

 
Thanks Chris, I was looking for the vbcrlf bit
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top