Send both POST and GET in a form

前端 未结 5 1420
-上瘾入骨i
-上瘾入骨i 2020-12-15 10:08

I need to make a form send both POST and GET requests (due to some bugs in IE and iframes), how can you do so?

The data being sent is nothing mega secure so it doesn

5条回答
  •  独厮守ぢ
    2020-12-15 10:59

    Easy: Just specify the GET data in the form URL.

    however, very carefully check how the data is used in the receiving script. Don't use $_REQUEST- rather parse $_GET and $_POST according to your exact needs and in the priority order you need them.

提交回复
热议问题