in reply to Pushing along the Query_String
This will give you access to the CGI params, but if you just want the whole string in $ENV{QUERY_STRING}, then you need to put it in your form tag.# Some people want to have their cake and eat it too! # Uncomment this line to have the contents of the query string # APPENDED to the POST data. # $query_string .= (length($query_string) ? '&' : '') . $ENV{'QUERY_ST +RING'} if defined $ENV{'QUERY_STRING'};
<FORM method=POST action="test.cgi?$ENV{QUERY_STRING}">
Then access it in the next cgi like this<INPUT type="hidden" name="query_string" value="$ENV{QUERY_STRING}">
my $query_string = $cgi->param('query_string');
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Pushing along the Query_String
by peppiv (Curate) on Jul 08, 2003 at 14:16 UTC | |
by derby (Abbot) on Jul 08, 2003 at 18:02 UTC |