pkit_validate_input — Validates input from an HTML form.
# very simple validation, just check to see if name field was filled out
my $input_profile = {required => [ qw ( name ) ]};
# validate user input
unless($model->pkit_validate_input($input_profile)){
# user must have not filled out name field,
# i.e. $apr->param('name') = $model->input('name') is
# not set, so go back to original form
# if you used a <PKIT_ERRORFONT NAME="name"> tag, then it will be set to
# red
$model->pkit_internal_redirect('orig_form');
return;
}
Takes an hash reference containing a Data::FormValidator input profile and returns true if the request parameters are valid.