Can a html button perform a POST request?

后端 未结 4 1069
庸人自扰
庸人自扰 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 19:52

    This can be done with an input element of a type "submit". This will appear as a button to the user and clicking the button will send the form.

    
        
    
    

提交回复
热议问题