http://pear.php.net/package/HTML_QuickForm2/ http://download.pear.php.net/package/HTML_QuickForm2-0.6.1.tgz
I am able to use this fine for forms but I'm having problems getting the client side validation to work. I don't think I have the correct files and includes but the explanation online is confusing the heck out of me. There's an example file that I'm trying to load (builtin-rules.php) but the javascript doesn't work. Here is an excerpt that I think should validate using ONBLUR event but it doesn't.
$username->addRule('required', 'Username is required', null,
HTML_QuickForm2_Rule::ONBLUR_CLIENT_SERVER);