Frankly, this doesn't make much sense.
if you don't want the query-string to show up in the location-field of the browser, use POST instead of GET as form-method, this has nothing to do with the cgi-script, though.
regards,
tomte
Hlade's Law:
If you have a difficult task, give it to a lazy person --
they will find an easier way to do it.
| [reply] |
There is a function/method called delete_all in CGI.pm that does what you need, but I think you have a different problem: you can't change the url showed by clients browsers inside your script; the url is used to invoke the script and it is not the result of your operations unless you issue a redirect. If your final purpose is to hide the params you can set METHOD attribute of FORM with POST.
Ciao, Valerio
| [reply] [d/l] |
Assuming you are using something like Apache, try the webserver environment to get the URL for your script:
my $url = $ENV{SCRIPT_NAME};
If you are trying to hide the options you will need the POST method.
-Kurt
| [reply] [d/l] |
You can see the example of what you want by voting on let's say this reponse node. The URL after voting would not consist extra parameter after index.pl in the browser.
If you want to invoke a CGI without a form tag, you are asking almost impossible, because it's not in your hand except 'redirection' by your CGI script.
artist | [reply] |
thanks all
http://search.cpan.org/author/LDS/CGI.pm-2.97/CGI.pm#DELETING_ALL_PARAMETERS_
seems right.
although i should be probably be using post as well ;)
| [reply] |