Solved

keeping returns when info sent with text area

Posted on 2000-04-28
3
135 Views
Last Modified: 2010-04-09
I am using a text area to send some information, but it won't hold the returns.

Example:
--------------------
Input:
hi
my
name
is

Output:
hi my name is
--------------------

How can I get it to keep the returns?
0
Comment
Question by:kch011099
  • 2
3 Comments
 
LVL 33

Expert Comment

by:knightEknight
ID: 2759778
If you are viewing the output as HTML, then you can use the <PRE> tags around it:

<PRE>
hi
my
name
is
</pre>

This will keep the returns when viewed by in a browser.
0
 

Author Comment

by:kch011099
ID: 2759806
That worked great. Use it as an answer so that you can get full points.
0
 
LVL 33

Accepted Solution

by:
knightEknight earned 30 total points
ID: 2759814
Glad to help!

<PRE>
hi
my
name
is
</pre>
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now