|
|
Home / Groups / ColdFusion Talk (CF-Talk)
Client-side validation or Server-side Validation?>>Does the JS and CF validation have to be totally independent in functionality? Basically yes ;-) I mean: 1º Javascript is so useful for so many things, I simply won't let a user fill a form if they have Javascript disable, period. 2º the main reason for validating data client side is for the user's comfort, so that he can correct mistakes right away before submitting the form. 2º Starting for that, once a field has been validated on client side, the only reason it could be invalid on the server would be because some hacker is horsing around with my system. In that case, the only concern is security and database integrity, and I don't see why I should give detailed and polite notice about what he is doing wrong. CFQUERYPARAM and SQL validation will give me the security I need. I must also say that in all my applications, forms are mostly used by the customer to manage his own data in his own intranet, and I don't remember any issue when the user tried to goof his own system. -- _______________________________________ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: piegeacon@internetique.com) Thanks. |
Mailing Lists
|
Latest Fusion Authority Articles
|