Embperl - building dynamic websites with Perl


SYNOPSIS
[ << Prev: DESCRIPTION ] [ Content ] [ Next: METHODS >> ]
 use Embperl::Form::Validate;

 my $epf = new Embperl::Form::Validate($rules, $form_id);

 $epf->add_rule('fnord', $fnord_rules);

 # validate the form values and returns error information, if any
 my $result = $epf -> validate ;

 # Does the form content validate?
 print 'Validate: ' . ($result?'no':'yes');
 
 # validate the form values and reaturn all error messages, if any
 my $errors = $epf->validate_messages($fdat, $pref);

 # Get the code for a client-side form validation according to the
 # rules given to new:
 $epf -> get_script_code ;

[ << Prev: DESCRIPTION ] [ Content ] [ Next: METHODS >> ]


© 1997-2023 Gerald Richter / actevy