in reply to storing radio button value and presetting after refresh
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: storing radio button value and presetting after refresh
by venganesan (Initiate) on Jul 30, 2013 at 23:41 UTC | |
by Anonymous Monk on Jul 31, 2013 at 12:15 UTC | |
by marinersk (Priest) on Jul 31, 2013 at 14:11 UTC |