formatting output text from textarea
Posted: Fri Feb 18, 2005 4:43 am
hii there,
i would like to know how i can format the output text coming from the text area.i have a forum-like program, if i add a thread, type the message, i like to view the output like how it appeared when i typed it in the textarea.what happens to me is that everytime i type some words, strike the return/enter key, the output is not how it was typed but instead, the new line becomes a space. i am really confused,maybe i'll put an example.
i like
my problem is, when i do it(strike the return/enter key) after each some text word,this is how it appears:
thanks
pleigh
i would like to know how i can format the output text coming from the text area.i have a forum-like program, if i add a thread, type the message, i like to view the output like how it appeared when i typed it in the textarea.what happens to me is that everytime i type some words, strike the return/enter key, the output is not how it was typed but instead, the new line becomes a space. i am really confused,maybe i'll put an example.
i like
to appear like the above format.some text
some text
some text
my problem is, when i do it(strike the return/enter key) after each some text word,this is how it appears:
i hope you guys can help me..some text some text sometext
thanks
pleigh