muller2 — 2006-10-18T05:32:42-04:00 — #1
How can I make a new line in a textarea?
I have created these but neither work.
Can someone please help?
stymiee — 2006-10-18T05:37:49-04:00 — #2
muller2 — 2006-10-18T06:11:56-04:00 — #3
That works, but I need it to accept values such as <br> or \
to create the newline.
Can the field be made to except html code and proces it?
xhtmlcoder — 2006-10-18T06:13:52-04:00 — #4
Not unless you use entities or a sever side script.
muller2 — 2006-10-18T06:21:30-04:00 — #5
But that doesn't work make the line break with the <br>.
system — 2006-10-18T06:37:59-04:00 — #6
Textarea is literally that. The values you put in there will be shown. If you 'forget' to end the tag, the rest of your HTML document will be displayed in the textarea.
I'm not too sure why you'd want your users to type in "<br>" or "\
" but if you use a server side script you could make it so anytime they pressed enter (to create a new line) your script would interpret that as "<br>".
tyssen — 2006-10-18T07:31:45-04:00 — #7
If you're trying to format text that already appears in a textarea then you should probably rethink what you're trying to do with it.
zcorpan — 2006-10-18T07:32:48-04:00 — #8