Originally posted by bad76
(... password is like a text field, has not limit, I think. The only one are that of post/get protocols...)
Hmm, going OT on an OT T.
The situation was: I created a photo album for family members and wanted to password protect it without making it impenetrable. (Why do people insist on passwords from elementary reading books? :rolleyes: ah, nevermind... )
So, I made an array of their emails and checked the POSTed password with in_array(). Worked fine for my tests - my test address was 14 characters long.
So I posted it and sent out the invitations. Two hours later an email from my in-laws: "It won't work" .... I jumped on the site, tried their email address ... form field wouldn't allow the length of their email address (33 chars), and so the script wouldn't validate them, since they could only input part of the address.
Changed
<input type=password name=pw>
to
<input type=password name=pw maxlength=100>
and the problem disappeared.
As for the article ... it's too true to be very funny, alas......