Think Through Form Validation

by Bryan on 1/1/2004 at 9:59 PM in Developer Stuff

I was in the middle of registering for an account at MyDomain.com when I came upon some poorly coded form validation.  One of the fields is the answer to a secret question.  The user gets to choose the secret question from a list 7 options -- I chose one that asks “What is your father's middle name?”  The problem I have is that the validation requires that the answer must be at least 6 characters -- my father's middle name does not meet this requirement.  Come to think of it, besides my own middle name, no one else in my immediate family has a middle name 6 characters or longer. 

Fortunately, I can get around this by choosing a different question (assuming I don't run into similar issues), or I can elect to not have a secret question, and thus no need for a secret answer...I wonder if selecting this option will still require a word of 6 or more characters...let's see...

Ok, it didn't balk at not having a secret answer, but upon submitting the form it did tell me that I don't have permission to access the server.  Great.  So much for trying them out for their free DNS services.  I guess I get what I pay for.