How to read the post request parameters using JavaScript

后端 未结 18 1386
自闭症患者
自闭症患者 2020-11-22 16:41

I am trying to read the post request parameters from my HTML. I can read the get request parameters using the following code in JavaScript.

$wnd.location.sea         


        
18条回答
  •  忘掉有多难
    2020-11-22 17:28

    POST variables are only available to the browser if that same browser sent them in the first place. If another website form submits via POST to another URL, the browser will not see the POST data come in.

    SITE A: has a form submit to an external URL (site B) using POST SITE B: will receive the visitor but with only GET variables

提交回复
热议问题