I have a site on which the user quite often fills in the same form with different info - fills in one form, submits it, and right away gets a new form. Now the default for CGI.pm, which is usually very useful, is that in this case the second form comes with the values submitted first time round. But in the present case that's not what I want. I'd like to be able to print out a whole load of empty fields (or sometimes fields with new info from a d.b.) as follows:
for (@Fields) {
print
$_->{Title},
': ',
textfield(
-name => $_->{Name},
-value => $_->{Value},
);
}
... but as it is, I have resorted to:
for (@Fields) {
param(
-name => $_->{Field} ,
-value => $_->{Info},
);
print
$_->{Title},
': ',
textfield(
-name => $_->{Name},
-value => $_->{Value},
);
}
The
-nosticky doesn't seem to do this for me (AFAIK it only works for hidden fields). Is there another way to turn off stickiness?
§
George Sherston