Re: New HTML_QuickForm rule
| From: | Alexey Borzov | Date: | Tue, 26 Aug 2003 08:00:05 +0000 |
| Subject: | Re: New HTML_QuickForm rule | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-20515@lists.php.net to get a copy of this message | ||
Hi!
Mika Tuupola wrote:
Currently working with HTML_QuickForm and I needed a rule for 'nonnegative' or better to say 'positive'. I know it can be achieved with regex rule but something like the following migh be a good addition:Please consider: 1) looking through the recent thread "Thoughts on QuickForm-additions (again)" where Bertrand gave his thoughts on whether QuickForm is (and should be) a regex library. 2) checking out CVS version of QuickForm. Bertrand is currently reworking the whole validation infrastructure. There may be a place for such rules in the new infrastructure, just not in regex.'positive' => '/[0-9]*/' 'negative' => '/^-[1-9][0-9]*/'
(BTW, only after Keith Edmunds wrote the HTML_QuickForm getting started guide, I realised how usefull the library is :)Looks like we have to add some "getting started" guide to the official docs as well. :]