Hi Greg,

Letting JS do all your validation is a Very Bad Idea.

First and foremost, users can turn it off at will.

Secondly, most JS validation is only written to validate type, not value.

In general, you should apply validation on the server side that
validates both the type of input, and that it's valid according to
your business logic (did they try to enter a date for a future
appointment that's in the past?), and then again at the database level
using parameters (for type), and logic + constraints for your business
logic.

-joe
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to