开发者

How can a GET form be submitted with variables in a specific order?

开发者 https://www.devze.com 2023-03-22 04:16 出处:网络
I am building a form that will be submitted to a different website (which I have no control over or ability to change). Oddly enough, the other site seems to require the queries be in a specific order

I am building a form that will be submitted to a different website (which I have no control over or ability to change). Oddly enough, the other site seems to require the queries be in a specific order to work correctly. Is there a way to specify how the submitted GET query will be ordered? I've tried ordering the fields in the for开发者_运维问答m, but it doesn't seem to work consistently.

As an example, 1. works fine, while .2 throws an error.

  1. http://minerva.maine.edu/search/?searchtype=t&searcharg=caterpillar
  2. http://minerva.maine.edu/search/?searcharg=caterpillar&searchtype=t


Not that I am aware of, however, ugly a solution as it is you could just build your URL in javascript and use window.location to send your GET?

0

精彩评论

暂无评论...
验证码 换一张
取 消