我正在嘗試將W3 school's "Company" Bootstrap theme改編爲版本號爲www.peek.solutions的網站。如何使用Formspree與引導程序模板
主題帶有一個聯繫表單,它還沒有工作,我試圖使用Formspree來實現它。我的做法至今只是一直以「包」與action="https://formspree.io/[email protected]"
和method=POST
以下含有具有<form>
標籤表單域的一部分,該文件如下:
<form action="https://formspree.io/[email protected]" method="POST">
<div class="col-sm-7 slideanim">
<div class="row">
<div class="col-sm-6 form-group">
<input class="form-control" id="name" name="name" placeholder="Name" type="text" required>
</div>
<div class="col-sm-6 form-group">
<input class="form-control" id="email" name="email" placeholder="Email" type="email" required>
</div>
</div>
<textarea class="form-control" id="comments" name="comments" placeholder="Comment" rows="5"></textarea><br>
<div class="row">
<div class="col-sm-12 form-group">
<button class="btn btn-default pull-right" type="submit">Send</button>
</div>
</div>
</div>
</form>
然而,這似乎並沒有工作:當我在字段中填寫一些測試值並按下「發送」,我沒有看到Formspree的默認確認頁面,也沒有收到給定地址的電子郵件(見下文)。
我怎樣才能解決這個代碼,以使Formspree工作?