in reply to Data::FormValidator, Not
Unfortunately, at this time you cannot pass a CGI object into Data::FormValidator. You must pass a reference to a hash containing your form data, which you can easily get by calling:
my $formdata = $q->Vars; my ($valids, $missings, $invalids, $unknowns) = Data::FormValidator->validate($formdata, $profile);
Oddly enough, I just finished writing a patch to D:FV that would allow passing a CGI object; I just haven't gotten around to submitting it to the module maintainer (markjugg).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Data::FormValidator, Not
by sz (Friar) on Sep 19, 2002 at 18:04 UTC | |
|
Re^2: Data::FormValidator, Not
by Aristotle (Chancellor) on Sep 19, 2002 at 20:21 UTC | |
by impossiblerobot (Deacon) on Sep 19, 2002 at 20:28 UTC | |
|
Re: Re: Data::FormValidator, Not
by markjugg (Curate) on Dec 23, 2002 at 15:20 UTC |