I changed your single quotes to double quotes (do not know if that is necessary) and fixed the error where you use the TYPE keyword twice in the same INPUT tag:
Changed it to:<input type='button' type='submit' value='Save'/>
And then I got the following output:<input type="submit" name="button" value="Save">
Parameter count: 2 'signoff' => 'review' 'button' => 'Save'
From this script:
#!/user/bin/perl use strict; use CGI; &httpHeader(); &weblog(); &httpFooter(); exit; sub httpHeader { print "Content-Type: text/html\n\n"; print "<HTML>\n"; print "<TITLE>Parameter Confirmation</TITLE>\n"; print "<BODY>\n"; } sub httpFooter { print "</BODY>\n"; print "</HTML>\n"; } sub weblog { my $cgihan = CGI::new(); my @frmprm = $cgihan->param; my $prmcnt = @frmprm; #----------------------------------------- # Debugging aid #----------------------------------------- print "<P>Parameter count: $prmcnt\n"; foreach my $frmprm (@frmprm) { my $prmval = $cgihan->param($frmprm); print "<BR>\ \ \ \ '$frmprm' => '$prmval'\ +n"; } #----------------------------------------- print "</P>\n"; return; } __END__
Perhaps this will help you get to the next stage in your experimentation?
In reply to Re: storing radio button value and presetting after refresh
by marinersk
in thread storing radio button value and presetting after refresh
by venganesan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |