This is great stuff, really cleared it up.
I think I'm close now. My one question is how to set the "value" in the name value pairs to the equivalent of making the param 'on'?
I've done this:
my $webpage = "http://myurl/cgi-bin/search2011.cgi"; my $url = "$webpage?subject=$c_subject; #From earlier declaration alre +ady posted print qq(<A HREF="$url">Subject</A>\n)."<br><br>";
However, since the radio button wasn't clicked, this just a returns an empty search
Should I use this type of thing:
$query->param('foo','an','array','of','values'); This sets the value for the named parameter 'foo' to an array of value +s. This is one way to change the value of a field AFTER the script ha +s been invoked once before. (Another way is with the -override parame +ter accepted by all methods that generate form elements.)
In reply to Re^2: Perl-CGI refresh with different param(s)??
by jonc
in thread Perl-CGI refresh with different param(s)??
by jonc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |