M
mcvallet
Hi,
I am writing a dynamical quiz and and once this quiz is submitted, I
display the answers. the problem is that when I submit the form without
answering the question in the display, I still get 'answers' that where
submitted previously.
I tried several thing like :
in the writing the form
#create the new writer
my $cgiWriter = new CGI("");
#reset any possible values kept previously
$cgiWriter->delete_all();
in correcting the form :
#create the new writer
my $cgiWriter = new CGI("");
some code
foreach my $p ( param() ) {
$form{$p} = param($p);
}
$cgiWriter->delete_all();
but it does not seem to work. could someone help me,
thanks
I am writing a dynamical quiz and and once this quiz is submitted, I
display the answers. the problem is that when I submit the form without
answering the question in the display, I still get 'answers' that where
submitted previously.
I tried several thing like :
in the writing the form
#create the new writer
my $cgiWriter = new CGI("");
#reset any possible values kept previously
$cgiWriter->delete_all();
in correcting the form :
#create the new writer
my $cgiWriter = new CGI("");
some code
foreach my $p ( param() ) {
$form{$p} = param($p);
}
$cgiWriter->delete_all();
but it does not seem to work. could someone help me,
thanks