Hey, quick question how do you do a word wrap on textareas? Is it even possible?
Word Wrap on Textareas?
do you mean like this
http://www.htmlcodetutorial.com/forms/_TEXTAREA_WRAP.html ?
http://www.htmlcodetutorial.com/forms/_TEXTAREA_WRAP.html ?
try this
change your sentence in the str variable and it should go to the next line. the 15 is how many letters wide it is, words are not chopped if they are too long. you can change 15 to whatever value you want, 75 is default
You have to use a php enabled webserver
or
in the source code
put each line on a new line the hello's will appear on a new line
| Code: |
|
<?php $str = "An example on a long word is: Supercalifragulistic"; echo wordwrap($str,15); ?> |
change your sentence in the str variable and it should go to the next line. the 15 is how many letters wide it is, words are not chopped if they are too long. you can change 15 to whatever value you want, 75 is default
You have to use a php enabled webserver
or
in the source code
| Code: |
|
<textarea> hello hello </textarea> |
put each line on a new line the hello's will appear on a new line
