请使用POST请求

Please use POST request

本文关键字:请求 POST 请使用      更新时间:2023-09-26

运行以下脚本时,我收到错误"请使用POST请求"。我只是html和javascript的初学者。这里出了什么问题,有人能帮忙吗。

javascript

                 function submitform(){
        if (!document.getElementById('reschedule').onclick) {
            alert("reschedule")
        }
        if (!document.getElementById('home').onclick) {
            alert("home")
        }
        if (!document.getElementById('cancel').onclick) {
            alert("cancel")
        }
    }

html是

   <html>
  <form name="myform" method="post,get" onsubmit="return submitform();">
<input type="submit" id="reschedule" value="reschedule" />
<input type="submit" id="home"  value="home" />
<input type="submit" id="cancel"  value="cancel" />
 </form>

<form name="myform" method="post" onsubmit="return submitform();">

更改此项:

method="post,get"

到此:

method="post"

<form>标记属性中,