Date: 01/18/06 (PHP Development) Keywords: php, java A coworker pointed me to a PEAR module the other day that allows one to generate form elements that automatically have JavaScript validation rules attached. But I've been using Smarty to achieve a cleaner separation of business logic from presentation - much like a MVC design - and would really hate to give that up. Does there exist a way to "automatically" get even some basic form validation, while still using the template engine? I don't want to have to write all the JS myself if there's a library that already does it, and is probably more thorough than I could be.
|