Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- JavaScript JumpStart #2 - form validation


BlobFisk - 9:27 am on Jun 10, 2003 (gmt 0)


I think that both client-side and server-side validation have their merits, and a time when they should and should not be used. On large sites, with complex submission forms I feel that server-side validation is the answer. We recently worked on a large eCommerce site with a number of different forms that required validation - for this we have a seperate Java Bean that was responsible for all form validation.

On smaller sites (with more straightforward forms), with less traffic, I feel that client side validation (as korkus has outlined above) is a perfectly valid (excuse the pun) solution.


Thread source:: http://www.webmasterworld.com/javascript/437.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com