On Jan 15, 2008 10:02 AM, Per Jessen <[EMAIL PROTECTED]> wrote:

> Nathan Nobbe wrote:
>
> > i think this ties into the thread tedd started a week or so ago
> > about the best approach for collecting user data.
> > it would be much easier to validate if there were 3 text input fields
> > to collect the data, rather than 1, free-form field.
>
> I would stick to one date field with a simple javascript validation
> (using a regex) at entry time followed by a semantic check that the
> given day exists in the given month/year.
> Of course, if you'd rather not use javascript, you could validate the
> whole thing after POST.


well obviously you want to validate on the server side no matter what.
validation only on the client side is a bad practice.

-nathan

Reply via email to