Re: What about javascript
| From: | Tomas V.V.Cox | Date: | Thu, 09 Aug 2001 15:12:26 +0000 |
| Subject: | Re: What about javascript | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-1343@lists.php.net to get a copy of this message | ||
Bertrand Mansion wrote:
>
>
> > Please be sure that all the validations are done by php besides JS. JS
> > is very comfortable to the user but is useless as a secure validation
> > system.
>
> Naturally, what do you think !!! :-)
>
> Actually, user can choose if he wants javascript or not, but server-side
> validation is always on, as long as a validation rule is defined. Validation
> rules definitions are stored in a separate class (Form_validation) which can
> be overridden by user if he wants to make or add his own validation rules
> (for validation against database data for example).
Haven't I mentioned my Data Validator Class? :)
http://vulcanonet.com/soft/index.php?pack=validata
nah.. it was a good idea for me, but without success
> By the way, we still have to implement an upload kind of field (type=file).
> I am still thinking about it... I have an extensive look at your upload
> class, Tomas.
If people wants the class to be added to Pear great, we could think the
way of benefit both from it. But I want to leave it as an independant
"component" as much as posible (I know that some people are using it (me
also) and don't want to make drastic changes). If not...you know this is
Open Source.. cut & paste what you need :-)
Tomas V.V.Cox