11 hours ago · 9 min read1819 words · Tech · 0 comments

Many years ago, I made the switch from building primarily app-server backed sites (using Node, ColdFusion, PHP, etc) to fully static sites using tools like Jekyll, Hugo, and Eleventy. For the most part, it was a great shift in how I build, but there were a few things I had to figure out in that new world - one of them was simple form handling. While I could have used serverless just fine, it felt like overkill. Luckily, there were a few services out there that catered to this need. You would simply use a unique action for your form and that service would handle collecting the form data, emailing it to you, and redirecting the user back to the site. A great example of this, and one I used in the past, is Formspree. You can see an example right on their home page: <!-- random form on your site --> <form action="https://formspree.io/f/{form_id}" method="post"> <label for="email">Your Email</label> <input name="Email" id="email" type="email"> <button type="submit">Submit</button> </form>…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.