in reply to keep get param from url even if page reload
For POST requests, the param("id") function will return the parameters from the postdata, but any parameters specified via a query string in the URL is available from the url_param("id"). Maybe you have a FORM that also has the id, or defines it, and it's empty?
For GET requests, when you reload the page, CGI parses the specified parameters and makes them available via the param() method.
So try url_param("id")
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: keep get param from url even if page reload
by bigup401 (Pilgrim) on Jan 25, 2019 at 09:37 UTC | |
Re^2: keep get param from url even if page reload
by bigup401 (Pilgrim) on Jan 25, 2019 at 09:37 UTC |