[development] Form field maxlengths vs. database field sizes

Morbus Iff morbus at disobey.com
Thu Feb 9 05:11:41 UTC 2006

>> http://drupal.org/node/46306#comment-71971 ]. Should form field
>> maxlengths be consistent with corresponding database field sizes or
>> should unicode encoding be accounted for?
> Drupal has no way of knowing what the field size of the database is,
> and as such the forms api can't take that into account.

Huh? I know that a taxonomy term can be 255, because it is hardcoded in 
the database definition, so why is it hardcoded in FAPI as only 64? 
What's the use of the other 190 or so characters?

Morbus Iff ( putting the sanity back in sanity )
Technical: http://www.oreillynet.com/pub/au/779
Culture: http://www.disobey.com/ and http://www.gamegrene.com/
icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus

More information about the development mailing list