NYCPHP Meetup

NYPHP.org

[nycphp-talk] Valudating common field types

David Mintz vtbludgeon at gmail.com
Mon Oct 26 16:32:09 EDT 2009


On Mon, Oct 26, 2009 at 4:26 PM, John Campbell <jcampbell1 at gmail.com> wrote:

> On Mon, Oct 26, 2009 at 4:16 PM, Yogesh Agashe <yogesh.agashe at gmail.com>
> wrote:
> > Hi Konstantin,
> >
> > Thanks for the feedback. Right, So many cases to handle in there. I will
> > also add minimum 2 characters to the list.
>
> May I ask, what is the point of all of this?  Who benefits from you
> imposing all sorts of piddly rules about what is in a name?  Do you
> benefit?  Why go to the extra effort to make your code only work for
> 99% of American English names.  If you do nothing, your code will work
> for any name, and you will have more free time to do something
> worthwhile.
>


Maybe you just want to protect users from their own mistakes, so they don't
input Hen3ry where they mean Henry.



>
> BTW,  I just checked my database, and I have 2 icelandic customers
> that don't even have last names on their credit cards.  I am glad I
> don't do validation, because if I did, I probably would have lost
> those customers.
>


I guess it depends on the application and the type of data you expect.

-- 
Demand health care for everyone:
http://mobilizeforhealthcare.org/

--
David Mintz
http://davidmintz.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20091026/4926b776/attachment.html>


More information about the talk mailing list