I am writing a PHP application that has a few forms. Often when a form is submitted I want to 1) update the database, then 2) forward to an URL. Usually the URL is dynamically constructed using parameters that were supplied as part of the last request.
My question is this: if a parameter is supplied in a request, solely for the purpose of constructing the 'forward to' url, should it be passed in the $_POST array or the $_GET array?
At the moment any parameters that need to be persisted as passed in $_POST, and those used solely for redirection are passed in $_GET.
This response, https://stackoverflow.com/a/1993498/356282, suggests that I should choose one method or the other...