php - Is it bad to limit length when creating email validation code? -
this question has answer here:
i learning jquery , php create own form validation. have read several tutorials not see consideration or notation in regards capping maximum length? did see minimum length requirement suggestions wanted know if best practice limit maximum allowed characters.
does sound good?
- email address = 25 characters
- name = 20 characters
- message = 200 characters notation there max.
rfc 3696 says maximum total length email address 320 characters ("local part": 64 + "@" symbol: 1 + "domain part": 255 = 320). it's rare you'll encounter address long, should support them nevertheless.
source: http://tools.ietf.org/html/rfc3696 (section 3: restrictions on email addresses, last paragraph)
Comments
Post a Comment