[phplib] Re: Get error messages from form element validation From: Jens Benecke (jens <email protected>)
Date: 04/29/01

On Sun, Apr 29, 2001 at 07:51:34PM +0200, Jens Benecke wrote:
> Hi,
>
> I'd like to somehow get at the error messages which I defined in
> OOHForm's add_element method, if the validation failed. Is that possible?
>
> ($f->validate() doesn't return the error string, it returns a boolean,
> which is useless to me)

Sorry, what I meant to say was that the validate() method only returns an
empty string, no matter whether the validation was successful or not. It
seems that validate() is *supposed* do return the error strings (how?
simply concatenated?) but it doesn't here.

Also, I always get an _empty_ Javascript validator function, in the HTML
result. Like this:

        <script language=javascript><!--
                function formname_Validator(f) {
        
                }
        // --></script>

So it seems that the validation is completely broken - has anyone else had
this problem?

-- 
Jens Benecke                   "Und deshalb sollte man ja auch immer _alle_
                                 Editoren installieren:  XEmacs _und_ Vim."
				                             -- Sven Guckes
http://www.hitchhikers.de/ - Die kostenlose Mitfahrzentrale für ganz Europa

  • application/pgp-signature attachment: stored