in reply to HTML Form retaining values
This sounds like something that could be browser-specific.
Also, you should try using CGI.pm instead of parsing your params by hand. You could replace your ParseForm() sub with this:
sub ParseForm { use CGI qw(:standard); my @keys = param(); foreach my $key (@keys) { $formdata{$key} = param($key); } }
This is much safer, as CGI.pm is smart enough to avoid edge cases that could cause security problems in your CGI.
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
Note: All code is untested, unless otherwise stated
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: HTML Form retaining values
by tcf22 (Priest) on Oct 03, 2003 at 17:53 UTC |