473,385 Members | 1,317 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Maintaining line breaks in HTML email

I have a text box which allows users to input the content for a HTML email.
I need to maintain the line breaks as the user enters them in the text box
when I send the email.

I'm assuming I need to do something like replace the line breaks in the text
box with <br/> tags?

Any ideas how I would do this please?
Nov 18 '05 #1
2 1967
Jos
Andrew Banks wrote:
I have a text box which allows users to input the content for a HTML
email. I need to maintain the line breaks as the user enters them in
the text box when I send the email.

I'm assuming I need to do something like replace the line breaks in
the text box with <br/> tags?

Any ideas how I would do this please?


In VB:

FinalText = InputText.Replace(vbCRLF,"<br>")

--

Jos
Nov 18 '05 #2
Cheers Jos, I guessed it would be a replace thing. Just wasn't certain what
to replace with the break tag
"Jos" <jo***************@fastmail.fm> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
Andrew Banks wrote:
I have a text box which allows users to input the content for a HTML
email. I need to maintain the line breaks as the user enters them in
the text box when I send the email.

I'm assuming I need to do something like replace the line breaks in
the text box with <br/> tags?

Any ideas how I would do this please?


In VB:

FinalText = InputText.Replace(vbCRLF,"<br>")

--

Jos

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: dan glenn | last post by:
Hi. I'm finding that if I have text entered into a <textarea ...> </textarea> in a form, and that text has leading blank lines (with no spaces or anything else), that when I retrieve the entered...
1
by: Bill | last post by:
I am downloading data from a website that displays it in a table $fp = fopen("a website page", 'r'); The following accesses the stream one <td> element at a time $myData = fgets($fp); Then I...
6
by: Jonathan | last post by:
I want to save textarea contents to a mysql database with the paragraph breaks intact without having to type paragraph or break tags in HTML. How can I do that. So far, although it occurs naturally...
5
by: mailbox | last post by:
Did write it down once, but have forgotten !! How is it you should format your ASP code to that when viewing the resulting HTML text from the browsers "view code" it looks nice with line breaks?
2
by: Andrew Banks | last post by:
I have a text box which allows users to input the content for a HTML email. I need to maintain the line breaks as the user enters them in the text box when I send the email. I'm assuming I need...
5
by: joelbyrd | last post by:
Didn't know exactly where to post this, but: How do I get line breaks in a textarea? I'm pulling text from a database, and this text definately has line breaks in it, because I replaced all the...
6
by: Stick | last post by:
Hi, I am trying to start my email app (in this case Eudora) with a programatically generated email. However, Eudora does not seem to recognize any of the ways I have tried to create line...
14
by: ghostwalker | last post by:
Hi I have an HTML form with a textarea on it. When submitted (using 'get' not 'post') this forms action php file simply does this to retrieve the values: $message = $_GET; Now it all works...
1
by: Arielle | last post by:
Trying to migrate from ASP classic to ColdFusion and was wondering how to handle this. A form has a text area that submits to a database and stores a memo that can later be viewed. How can I...
3
by: paul814 | last post by:
I have a MYSQL DB that people enter data into through a multiline textbox, and then i display the data on a search results page. Here is how I display it: while($row=mysql_fetch_object($rs)){ ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.