Log in

View Full Version : Big Old Text Field



hamfast
11-01-2007, 10:19 AM
Hello there

I'm putting a form together and what a text box input field that's big.

I know you can simply alter the field size by specifying the length of it ie.

"size=20" etc

But how do I get it so that the text box is several lines long so that the box resembles a big old box??

Thanks

hamfast

djr33
11-01-2007, 10:44 AM
That's a textarea, not a textfield. It operates a bit differently, most notably that the enter key adds a line break, rather than submitting.
<textarea name="something" cols="5" rows="5">this text is in there by default including <html> tags etc</textarea>

cols and rows are the size, based on columns/rows of letters.

hamfast
11-01-2007, 12:19 PM
Daniel

That's brilliant - cheers.
hamfast