POST without Form Method (PHP)

前端 未结 7 1758
囚心锁ツ
囚心锁ツ 2021-02-13 15:24

Is there any way to pass stuff from one page to another using the POST method without using forms.

Like in get you can just append a ? with whatever you wan

7条回答
  •  时光说笑
    2021-02-13 15:52

    You'll need some javascript if you want to POST from the browser and make it look like a link:

    you can use submit() function . see http://www.javascript-coder.com/javascript-form/javascript-form-submit.phtml for example.

    but if you want it to act like GET, why not use GET ?

提交回复
热议问题