in reply to Re^2: CGI.pm ignore URL GET query string parameters
in thread CGI.pm ignore URL GET query string parameters
I thought I remembered there being a pragma or something that allowed that, but I'm probably misremembering.
Do you mean the invocation method defined at CGI.pm's Creating-a-new-query-object-from-an-input-file of CGI), which has the example:
To create an empty query, initialize it from an empty string or hash:my $empty_query = CGI->new(""); -or- my $empty_query = CGI->new({});
This creates your query object without any parameters from the get-go.
Or, if you want to use the parameters at first so that you can extract information, but then delete them before outputting any HTML so they don't pre-populate forms, then you probably want to read Deleting-all-parameters of CGI to find $q->delete_all(); , which will delete the parameters at your whim.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: CGI.pm ignore URL GET query string parameters
by Danny (Chaplain) on Mar 13, 2024 at 20:39 UTC | |
by pryrt (Abbot) on Mar 13, 2024 at 20:57 UTC |