Jump to content

Check out our Community Blogs

Register and join over 40,000 other developers!

Recent Status Updates

View All Updates

- - - - -

HTML textareas

HTML textarea

  • Please log in to reply
2 replies to this topic

#1 JakeWelton


    CC Addict

  • Advanced Member
  • PipPipPipPipPip
  • 152 posts
  • Programming Language:Java, C++, C#, PHP, JavaScript, PL/SQL
  • Learning:Objective-C, Python, Perl, Ruby, Visual Basic .NET, Haskell

Posted 20 July 2011 - 07:39 AM

Hi all,

Basically i need to retrieve some text from a text area with all the formatting included. For example if the user types two paragraphs into the text area i want it to then be displayed back as two paragraphs and not all as one long line.

Any help with this??

  • 0

#2 wim DC

wim DC


  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 2681 posts
  • Programming Language:Java, JavaScript, PL/SQL
  • Learning:Python

Posted 20 July 2011 - 08:45 AM

How does the text in it retrieve its formatting?

I mean, you're talking about bold , italics, ... formatting right? Or just paragraphs?

I don't see how the text in the textarea would suddenly loose all newlines....

Where do you need it by the way, Javascript?
  • 0

#3 Vaielab


    Programming God

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1382 posts
  • Location:Quebec City
  • Programming Language:Java, C++, C#, PHP, JavaScript, Visual Basic .NET, Transact-SQL, ActionScript

Posted 12 August 2011 - 07:12 AM

I know this is in the html forum, but if you retreive it, you must do some server side coding.
If you are using PHP try to output it with the function nl2br()
  • 0

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download