Hi all
I've tried to get some custom filters (using anon refs) working with
CGI::Application::Plugin::ValidateRM, but to no avail. I turned on logging
in my subs, and I could see the filter taking effect, but the post-filter
param values weren't being kept after the validation.
To convince myself that I wasn't going crazy, I took Mark's demo at
http://www.summersault.com/community/weblog/2005/10/25/validating-web-forms-
with-perl.html
and I changed the final lines in the form_process method from
$self->header_type('redirect');
$self->header_props( -url=>'index.html');
to
return '<pre>'.Dumper({$self->query->Vars}).'</pre>';
Running the app, adding spaces to the full_name and pet_name fields, I get:
$VAR1 = {
'fav_music' => 'Rock N\' Roll',
'rm' => 'form_process',
'fav_color' => 'Blue',
'pet_food' => 'Organic Dog Crunchies',
'zipcode' => '12344',
'full_name' => 'Dan ',
'fav_language' => 'Perl',
'pet_name' => 'Fido '
};
The whitespace isn't being trimmed at all. Any ideas?
Dan
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.