Word Wrap on Form Input ( textarea )
Posted on 2002-05-23
I have a form with input type as textarea which can contain up to 10 rows of 78 chars message. I key in the message without break/hard return. Afer submit, I get the param'message');. After I write it to a file (newfile.txt text files format ). Open with notepad/wordpad. I found out the output does not have a hard return instead the text editor treat the whole message as one line. However, I read from a lot of sources. If I do this <textarea name="message" wrap="physical" rows="10" cols="78"></textarea>. The option wrap="physical" should add a hard return at the wrap point ( 78 chars ).However, it does not work as well.
Anyone can help me on that?
Finding : 1. of cos' if i type the messages with hard return in every 78 char, after submit, I will get a message with hard return each line.
2. I want user to type everything without keyin return;however, at the end, I can see the "return" at every end of line ( ie. roughly 78 chars ).
<form ... >
<textarea name="message" rows="10" cols="78"></textarea></p>