If you are using a static site generator SSG like Hugo or Jekyll, there maybe come a time that you may ask yourself, how do I handle forms.
Since static websites don't have a back-end
you can use the services of a forms back-end such as fabform.io that can handle your static website forms
Simple create a free account at fabform.io
Once you are in fabform, its just a case of creating a forms endpoint and adding the endpoint id to your html form's action method as shown here.
<form action="https://fabform.io/f/{form-id}" method="post">
<label for="email">Your Email</label>
<input name="email" type="email">
<button type="submit">Submit</button>
</form>
And that's all there is to it.
You now have a fully working contact form working!
Top comments (0)