Contact form for Plain HTML
Contact form for a static HTML site
A static site can't receive form posts. Add one attribute and Formpit receives, stores, filters and emails them.
How to set it up
- Create a form in Formpit and copy the endpoint URL.
- Set your form's
actionto the endpoint andmethodto POST, or paste the snippet below. - Open the page and send a test submission.
The whole integration
<form action="https://formpit.com/f/YOUR_FORM_ID" method="POST">
<input type="text" name="name" placeholder="Your name" required>
<input type="email" name="email" placeholder="Your email" required>
<textarea name="message" placeholder="Message" required></textarea>
<input type="text" name="_gotcha" style="display:none" tabindex="-1" autocomplete="off">
<button type="submit">Send</button>
</form>Replace YOUR_FORM_ID with the endpoint from your form's Setup tab.
Good to know
- Works on GitHub Pages, Netlify, Vercel, Cloudflare Pages, S3, anywhere.
What you get
- Every submission emailed to you and stored forever in an inbox with New / Replied / Closed statuses.
- Reply from the inbox, add tags and notes, search, export CSV or JSON.
- Spam filtering with a honeypot, rate limiting and content checks; hCaptcha, reCAPTCHA or Turnstile if you want it.
- 500 submissions a month free. Pro adds file uploads, Google Sheets, Notion, Slack, webhooks and reminders.
Other platforms
Lovable · Bolt · v0 · WordPress · Shopify · Wix · Squarespace · Framer · Webflow · Carrd · React · Next.js · Astro · Hugo, Jekyll & Eleventy · Vue & Nuxt · Svelte & SvelteKit