in reply to Perl-CGI refresh with different param(s)??
"http://www.somesite.com/page1.htm?age=10&name=Tom"
You could do this:
my $url = self_url(); $url =~ s/name=Tom/name=Betty/; print $url, "\n"; --output:-- http://www.somesite.com/page1.htm?age=10&name=Betty
Then you could insert the altered url in the html output that you send back to the browser.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl-CGI refresh with different param(s)??
by Your Mother (Archbishop) on Jun 20, 2011 at 21:09 UTC |