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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Textarea Form -results on separate lines-

Status
Not open for further replies.

fxcolin

Technical User
Oct 14, 2001
169
CA
I'm creating some forms for a classifieds type section, where the user will enter information, it gets stored in MySQL and results pulled to a categorized type directory.

So my question is...
When a user enters information into a text-area, how can the info be put on separate lines ?

Example:
(The following information is typed into the text-area)
"My name is Joe" -first line
"I am Canadian" -second line

Now when this is displayed on the results page this is what it looks like:
"My name is JoeI am Canadian"
As you can see... it's all squished so, how do I make the two sentences on separate lines ??

I"m using php, apache, MySQL. Could it be a MySQL directive in the table structure?
Actually a good example would be this forum. When you type your message and at some point hit 'enter', that breaks the line and starts a new one.

Can someone offer a tip??
Thanks
"In life there are 3 types of people. Some that MAKE it happen, Those that WATCH it happen and some that say... hey! WHAT happened ???"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top