Html 如何在NodeJS中触发post请求中的网页?

Html 如何在NodeJS中触发post请求中的网页?,html,node.js,post,get,Html,Node.js,Post,Get,下面是我想要请求像/zamanescimi这样的post方法的代码,我想要根据/zamanescimi中的数据打开像rapor.ejs这样的页面 我该怎么做 <form method="post" action="/zamansecimi" > <div class="form-group"> <label for="ad">Başlangıç</

下面是我想要请求像
/zamanescimi
这样的post方法的代码,我想要根据
/zamanescimi
中的数据打开像
rapor.ejs
这样的页面

我该怎么做

<form  method="post" action="/zamansecimi"  >
    <div class="form-group">
        <label for="ad">Başlangıç</label>
        <input type="date" class="form-control" name="baslangic" id="baslangic"  placeholder="" required>
    </div>
    <div class="form-group">
        <label for="soyad">Bitiş</label>
        <input type="date" class="form-control" name="bitis" id="bitis" placeholder="" required>
    </div>            
    <div class="box-footer">
        <button type="submit" value="rapor" class="btn btn-primary">Göster</button>
    </div>

      </div> 
   </div>
</form>

巴朗
比蒂ş
哥斯特

调用端点(
/zamanescimi
)时,您的后端将需要使用
重定向
进行响应

如果您使用的是
express
,您可以在此处查看文档