Question about a http form GET method, using query arguments

Posted by Lasse V. Karlsen on Stack Overflow See other posts from Stack Overflow or by Lasse V. Karlsen
Published on 2010-04-08T11:01:29Z Indexed on 2010/04/08 11:03 UTC
Read the original article Hit count: 286

Filed under:
|
|
|

I am looking at a bug in WebSVN where when I get into a file log and click on compare, it looses the repository name as part of the request. The details are unimportant.

However, I've tracked down the bug to a http form that looks like this:

<form method="get" action="comp.php?repname=Binaries&amp;" id="compare">
  ....
  <input type="hidden" name="KEY" value="VALUE">

Is this supposed to work? Will both the "repname" argument, specified as part of the URL, and the hidden value be sent? It seems Chrome 4.1 only sends the hidden argument, and removes the repname parameter altogether. Is this correct?

I fixed it temporarily, pending more information, by adding another hidden field for repname with the same value, and now everything works, I'm just wondering if Chrome or WebSVN is in fault here.

© Stack Overflow or respective owner

Related posts about http

Related posts about form