Forum Moderators: open

Message Too Old, No Replies

Size of Text Boxes

How do you know how big to make them?

         

Newnewbie

12:58 pm on Mar 23, 2002 (gmt 0)

10+ Year Member



How do you know what size to make you text boxes? I have a field in my database that can be up to 32 characters? Should I make my text box size="32"? And doesn't Netscape handle these text box sizes differently than IE?

korkus2000

1:42 pm on Mar 23, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Use javascript or server-side scripting to make sure that you get only 32 characters. Weird things happen and you don't want to throw a DB exception.

txbakers

2:45 pm on Mar 23, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<input type="text" size="32" maxsize="32">

bmcgee

5:44 pm on Mar 23, 2002 (gmt 0)

10+ Year Member



maxsize? or maxlength?
I've always used maxlength...is maxsize more compliant and should that be what is used?

toadhall

5:52 pm on Mar 23, 2002 (gmt 0)

10+ Year Member



It's "maxlength".