david <> wrote:
> On Sep 16, 5:36=A0pm, xhos...@gmail.com wrote:
> > david <michaelg...@gmail.com> wrote:
> >
> > > But in
> > > every step of the wizard i have to give in the html for every control
> > > of the other steps a hidden field
> > > This makes it tedious
> >
> > use CGI;
> > my $cgi=3DCGI->new;
> > #.....
> > print $cgi->hidden('param_name');
> >
(please don't quote sigs. Sig snipped)
> Thanks, I think this will do the trick. Something like this.
> foreach my $param_name ($cgi->param) {
> print $cgi->hidden($param_name,$cgi->param($param_name));
> }
I think the below should work:
foreach my $param_name ($cgi->param) {
print $cgi->hidden($param_name);
}
CGI.pm supports "sticky fields", which means if you used CGI both to
parse the submitted form and print a new form, it automatically uses
the values of just-parsed elements to populate the newly printed ones with
the same name.
Xho
--
--------------------
http://NewsReader.Com/ --------------------
The costs of publication of this article were defrayed in part by the
payment of page charges. This article must therefore be hereby marked
advertisement in accordance with 18 U.S.C. Section 1734 solely to indicate
this fact.