valdation

Where do you do your validation? model, controller or view

Where do you put user input validation in a web form application? View: Javascript client side Controller: Server side language (C#...) Model: Database (stored procedures or dependencies) I think there is validation required by each level: Did the user input a sane value are dates actual dates, are numbers actualy numbers ... D...

jQuery Validation - Changing "Required" Attribute based on other fields

Hi there - I'm using the jQuery Validation plugin (http://docs.jquery.com/Plugins/Validation) on a form I'm building. The form is made up of 6 fieldsets, each containing 3 text inputs for an email address, a first name and a last name. A simplified version of the markup is like so: <form id="ref" action="submit.php" method="post"> ...