You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2009/10/18 23:46:56 UTC

DO NOT REPLY [Bug 48022] New: Get in form does not handle variables

https://issues.apache.org/bugzilla/show_bug.cgi?id=48022

           Summary: Get in form does not handle variables
           Product: Apache httpd-2
           Version: 2.2.11
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Other Modules
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: ian.hobson@ntlworld.com


I have a search box in a form that is submitted by 

<form accept-charset="UTF-8" method="get" id="searchtop"
action="/list/customer/0/post/">

The search box is submitted and available to php using nginx, but not with
Apache2. The exact version is Apache/2.2.11 (Win32) DAV/2 PHP/5.2.9-2 SVN/1.6.2 

The standard appears to permit method="get" in a form and it would be daft 
if fields appear correctly in the browser, are sent the the server, and then
dropped by some, but not all servers. 

I do have strange rewrite rules, which are below, just in case these contribute
to the problem. the aim is to serve images and ,css directly, pass test.php to
php, and process the rest with index.php. It is, of course, index.php that is
not receiving the variable. 

RewriteEngine On
RewriteRule ^(/images/.*\.(png|gif|jpg))$  $1 [L]
RewriteRule ^(/.*\.css)$   $1  [L]
RewriteRule ^/test\.php$  /test.php [PT]
RewriteRule ^(.*)$ /index.php?$1      [PT]

Thanks

Ian

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 48022] Get in form does not handle variables

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48022

--- Comment #3 from Eric Covener <co...@gmail.com> 2009-10-19 03:35:43 UTC ---
(In reply to comment #2)
> You have miss-understood the problem. The QSA flag APPENDS to the query string.
> Without it the query string is NOT lost. 

It is when you have an explicit question mark in your substitution, as you do.
> 
> I am getting the query string correctly. It is what I expect, and what I need. 

Apache only cares to the extent of the query string,  PHP parses the query
string and stuffs the values into your variables.

> What I am not getting is a form variable. This is a form variable, NOT part of
> the query string. 

When you define inputs in a GET-based form, they're sent to the server in the
query string.  PHP or any other scripting language just parses the query
string, there is no notion of form variables anywhere else.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 48022] Get in form does not handle variables

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48022

--- Comment #2 from Ian Hobson <ia...@ntlworld.com> 2009-10-19 01:59:00 UTC ---
Hi Eric, 

You have miss-understood the problem. The QSA flag APPENDS to the query string.
Without it the query string is NOT lost. 

I am getting the query string correctly. It is what I expect, and what I need. 

What I am not getting is a form variable. This is a form variable, NOT part of
the query string. 

The QSA flag is not documented to modify or remove form variables. 

Sending a form with GET and variables, may be considered unusual, but it should
work - and does work with other web servers. 

Ian

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 48022] Get in form does not handle variables

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48022

Eric Covener <co...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Eric Covener <co...@gmail.com> 2009-10-18 16:19:53 UTC ---
Your last rule discards the query string.  See the QSA flag or the users
discussion list.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org