CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 TextArea Carriage Returns To HTML

Print topic Send  topic

Author Message
Suntower

Posts: 225
Posted: 05/01/2008, 2:11 PM

Hi,

I have a form with a TEXTAREA that I am using to e-mail to a list of people. Works fine, except that the TEXTAREA which wordwraps properly on screen does not create the proper line breaks.

IOW: If the user enters
1
2
3
4
5

...in the TEXTAREA, the e-mail they receive is
1 2 3 4 5

Is there a formatting function (ASP) that I can use to create the proper <br> or <p> for each carriage return they enter on screen?

Thanks,

---JC
_________________
---On a campaign for more examples and better docs!
View profile  Send private message
Suntower

Posts: 225
Posted: 05/01/2008, 2:59 PM

FWIW, this seems to work...

MyText = replace(MyForm.MyTextArea.Value, VbCrLf, "<br />")

Perhaps this s.b. in an FAQ somewhere?

---JC


_________________
---On a campaign for more examples and better docs!
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.