我做了一些环顾四周,发现了formspree.io,但我不确定如何设置它。我的第一个问题是,我的主页是否需要是“.html”扩展名或“.php”扩展名?其次,我需要在我的xampp环境中测试它还是在本地工作?
这是我的HTML表单:
<section id="two" class="wrapper style2 special">
<div class="inner narrow">
<header>
<h2>Get in touch</h2>
</header>
<form class="grid-form" method="post" action="https://formspree.io/carsonclark2009@gmail.com">
<div class="form-control narrow">
<label for="name">Name</label>
<input name="name" id="name" type="text">
</div>
<div class="form-control narrow">
<label for="email">Email</label>
<input name="email" id="email" type="email">
</div>
<div class="form-control">
<label for="message">Message</label>
<textarea name="message" id="message" rows="4" placeholder="Ask your question or set up an appointment here..."></textarea>
</div>
<ul class="actions">
<li><input value="Send Message" type="submit"></li>
</ul>
</form>
</div>
</section>
我试过了,我的电子邮件没有收到任何内容,所以我肯定做错了什么,但我不确定是什么。如果我只是自己做这将需要大量的PHP代码,如果我的网站不在服务器上,我将如何测试?
感谢阅读。