Re: Pear Quickform + Client side validation
| From: | Alexey Borzov | Date: | Fri, 26 Dec 2008 21:51:59 +0000 |
| Subject: | Re: Pear Quickform + Client side validation | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-29538@lists.php.net to get a copy of this message | ||
Hi,
Adam Schroeder wrote:
I was just curious if anyone had some tutorials/references/advice for implementing client side authentication with quickform. I know it already comes with client side authentication, but it seems like it is lacking a few key features. Typically, when I write client validation for web-forms -- I like to highlight the area that caused validation to fail (or place an asterisk). By default -- quickform validation just displays a javascript alert box when validation fails. I would like to add something more descriptive. If quickform would pass the form object -- rather than the form value to the client for authentication -- it would be possible to write custom callback validation functions; however, it seems like it only passes the value.You might try this: http://pear.php.net/package/HTML_QuickForm_DHTMLRulesTableless