House of Fusion
Home of the ColdFusion Community

Search cf-talk

December 05, 2008

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
   1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31       

Search over 2,500 ColdFusion resources here  >>>      
Home / Groups / ColdFusion Talk (CF-Talk)

Client-side validation or Server-side Validation?

Author:
Claude Schneegans
04/15/2007 05:24 PM

>>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