use CGI;
print "<H1>Save and Restore Example</H1>\n";
# Here's where we take action on the previous request
# Here's where we create the form
print $query->start_multipart_form;
print "Popup 1: ",$query->popup_menu('popup1',[qw{red green purple magenta orange chartreuse brown}]),"\n";
print "Popup 2: ",$query->popup_menu('popup2',[qw{lion tiger bear zebra potto wildebeest frog emu gazelle}]),"\n";
print "<P>";
print "<P>";
# Here we print out a bit at the end
sub save_parameters {
print "<P>If you remember this name you can restore the state later.\n";
} else {
}
}
sub restore_parameters {
} else {
}
return $query;
}
# Very important subroutine -- get rid of all the naughty
# metacharacters from the file name. If there are, we
# complain bitterly and die.
sub clean_name {
print "alphanumerics are allowed. You can't use absolute names.</STRONG>";
}
}