>
> How can i in embperl 2.0b8 with Validate module check, if some rule
> key ('user' in my example) is giving an error or not?
>

You need to use validate instead of messages:

use Embperl::Form::Validate ;
$validate = Embperl::Form::Validate->new();
$validate->add_rule([-key=>'user', -msg=>'Missing', required=>1]);

$result = $validate -> validate({user2 => 1}) ;
%errors = map { $_->{key} => 1} @$result ;


Gerald

--------------------------------------------------------------
Gerald Richter     ecos electronic communication services gmbh
IT-Securityl�sungen * dynamische Webapplikationen * Consulting

Post:       Tulpenstrasse 5          D-55276 Dienheim b. Mainz
E-Mail:     [EMAIL PROTECTED]          Voice:   +49 6133 939-122
WWW:        http://www.ecos.de/      Fax:     +49 6133 939-333
--------------------------------------------------------------
|
|   Besuchen Sie uns auf der CeBIT vom 12. - 19. M�rz 2003
|   Messe Hannover * Halle 17 * Stand F 36
|   http://www.cebit.de/
|
+-------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to