Re: Validation class comments
| From: | Tim Gallagher | Date: | Tue, 28 May 2002 21:29:07 +0000 |
| Subject: | Re: Validation class comments | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-6549@lists.php.net to get a copy of this message | ||
How about creating some methods for javascript output so one could use the same class interface for both client side, and server side validation?
my two cents worth.
-timmyg
At 11:27 PM 5/28/2002 +0200, Pierre-Alain Joye wrote:
On 28 May 2002 20:55:34 +0200 "Tomas V.V.Cox" <cox@idecnet.com> wrote: I'm talking about performance not easy of use :-) As usual, hard to make compromises between modularity and performances. Basically, the core validation should contain the following : Basic types : string email (optional MX check (calls network container) ) reserved words ( must have words[] ) regexp min length max length commonly used algos ( string algo stuffs like a std checksum with key incuded ) url's others ? numeric interval [min,max] precision (decimal) commonly used algos (luhn, ... ) And the 2nd level we would find :) :. . .