Meja hadapan ws.html
<form method="post">
<p class="form-group" >
<lable for="name">手機(jī)號(hào)</lable>
<input type="text" class="form-control" id="name" placeholder="請(qǐng)輸入你的手機(jī)號(hào)" name="pnum">
<lable for="price">QQ號(hào)</lable>
<input type="text" class="form-control" id="price" placeholder="請(qǐng)輸入你的qq號(hào)" name="qnum">
<lable for="num">郵箱</lable>
<input type="text" class="form-control" id="num" placeholder="請(qǐng)輸入你的郵箱" name="email">
</p>
<button type="submit" class="btn btn-default">提交</button>
</form>
menghala ws.js
router.post('/ws',function(req,res,next){
console.log(req,body);
res.render('suc',{
message : "恭喜你完善成功",
})
})
業(yè)精于勤,荒于嬉;行成于思,毀于隨。
Laluan ini tidak dimasukkan sama sekali Adakah maklumat log anda dikeluarkan?
<form method="post">
沒有 action
anda hendaklah disiarkan ke halaman utama tapak web secara lalai.