in reply to Re: Perl-CGI refresh with different param(s)??
in thread Perl-CGI refresh with different param(s)??
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.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Perl-CGI refresh with different param(s)??
by 7stud (Deacon) on Jun 20, 2011 at 21:20 UTC | |
by jonc (Beadle) on Jun 20, 2011 at 21:29 UTC | |
|
Re^3: Perl-CGI refresh with different param(s)??
by 7stud (Deacon) on Jun 20, 2011 at 21:47 UTC | |
by jonc (Beadle) on Jun 21, 2011 at 18:59 UTC |