Alex Rivera | Logout

How do you avoid duplication of validation on the server and client-side?

Asked 2009-04-22T19:14:09.660
14

How do you avoid duplication of validation on the server and client-side? Is there a web programming platform that generates one from the other, so I don't have to keep the two in sync?

Edit
Report

1 Answer

0

It's best to do validation on the server side in most cases. You have many different options to make this easier such as Ajax or using sticky forms in PHP. I personally tend to do validation on the server side because the user has the option to turn off JavaScript and they can't turn off validation on the server.....

answered 2009-04-22T19:23:17.440

Your Answer