Can a html button perform a POST request?

后端 未结 4 1076
庸人自扰
庸人自扰 2020-12-12 19:44

I want a submit type button to send a POST request.

I am thinking about something like this:

4条回答
  •  星月不相逢
    2020-12-12 20:12

    You need to give the button a name and a value.

    No control can be submitted without a name, and the content of a button element is the label, not the value.

    
        
    
    

提交回复
热议问题