JS form validation, integrated with Smarty

    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.

    FYI, I'm fairly new to PHP.

    Source: http://www.livejournal.com/community/php_dev/63936.html

« Embedded PHP || clickable url's & emails »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home