Page 1 of 1

FORM ELEMENTS!

Posted: Sun Feb 05, 2006 9:53 pm
by xEzMikex
allright I use

<input size="70" class="form" style="height:500px;" type="text" name="content">

but when i type content i can only type one line and when i press enter it doesnt go to a second like it stays in one.

Posted: Sun Feb 05, 2006 9:54 pm
by nickman013
What do you mean?

Posted: Sun Feb 05, 2006 9:57 pm
by feyd
I want a textarea.

Code: Select all

<textarea name="content" cols="70" style="height:500px" class="form"></textarea>

Posted: Sun Feb 05, 2006 9:58 pm
by xEzMikex
will it work the same?

Posted: Sun Feb 05, 2006 10:00 pm
by nickman013
Yes it will be the same input wise.

An example of a text area is the box you respond in for the forums.

Posted: Sun Feb 05, 2006 10:03 pm
by xEzMikex
allright working good... but now it still goes in a line how to i make it so it auto line breaks?

Posted: Sun Feb 05, 2006 10:04 pm
by nickman013
you will need to use wordwrap
there are several of them.

:arrow: http://www.faqs.org/docs/htmltut/forms/ ... _WRAP.html

Posted: Sun Feb 05, 2006 10:16 pm
by xEzMikex
thanks sir's

Posted: Sun Feb 05, 2006 10:22 pm
by nickman013
No Problem, and welcome to the forums! :D

Posted: Sun Feb 05, 2006 11:12 pm
by John Cartwright
you can also use nl2br() to convert new lines to line breaks

Posted: Sun Feb 05, 2006 11:45 pm
by nickman013
yeah that would work too.