Jump to content

HTML textareas

- - - - -

  • Please log in to reply
2 replies to this topic

#1
welton122

welton122

    Learning Programmer

  • Members
  • PipPipPip
  • 76 posts
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??

Thanks,
J

#2
wim DC

wim DC

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,084 posts
  • Programming Language:Java, JavaScript, PL/SQL
  • Learning:Java
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?

#3
Vaielab

Vaielab

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 547 posts
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()




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users