Sorry if this has been put forth already. I checked and couldn't find a similar request, and this may not be a bug. But in the get_exposed_input() function in the includes/views.inc file, the code looks like this:

function get_exposed_input() {
    // Fill our input either from $_GET or from something previously set on the
    // view.
    if (empty($this->exposed_input)) {
      $this->exposed_input = $_GET;
      // unset items that are definitely not our input:
      foreach (array('page', 'q') as $key) {
        if (isset($this->exposed_input[$key])) {
          unset($this->exposed_input[$key]);
        }
      }

Can it be changed to use the $_REQUEST rather than the $_GET? I'm trying to write a handler that allows for uploading of a file whose contents will be parsed and then used for the filtering. To make this work, I have to change the form method from a "GET" to a "POST", but when I do this it makes it so that the input values don't get set.

Comments

spficklin’s picture

After doing a bit of reading. I have learned that using $_REQUEST is the wrong way to go as it would allow cookies to overwrite form values. So, instead would it be possible to join the $_GET and $_POST commands so that the form could be used with either form of action?

mustanggb’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)