Guide · Plain HTML
Add a contact form to a plain HTML site
Any static host works: GitHub Pages, Cloudflare Pages, Netlify, an S3 bucket. The form posts straight to Zephos Forms, and the visitor lands back on your site.
Create a free account and a form. Copy its access key.
Paste this form where you want it, and replace
YOUR_ACCESS_KEYwith your key.<form action="https://forms.zephos.dev/submit" method="POST"> <input type="hidden" name="access_key" value="YOUR_ACCESS_KEY"> <input type="hidden" name="_redirect" value="https://your-site.example/thanks"> <input type="hidden" name="_subject" value="New message from my site"> <label>Name <input name="name" required></label> <label>Email <input name="email" type="email" required></label> <label>Message <textarea name="message" required></textarea></label> <!-- Spam trap: people never see it, bots fill it in. --> <input type="text" name="_gotcha" tabindex="-1" autocomplete="off" style="position:absolute;left:-5000px" aria-hidden="true"> <button type="submit">Send</button> </form>Optional, against spam: add Cloudflare Turnstile to the form and save its secret key in the form's settings.
<!-- In <head> --> <script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer></script> <!-- Inside your <form>, before the button --> <div class="cf-turnstile" data-sitekey="YOUR_TURNSTILE_SITE_KEY"></div>
Submit the form once from your live site. The submission shows up in your dashboard and in your inbox.
Good to know
- On the free plan, visitors see a short thank-you page with a link back to your site. Paid plans send them to your own page (
_redirect). - Fields starting with an underscore are settings, not data:
_redirect,_subject,_replyto,_gotcha. - JSON requests get JSON back:
{ "success": true, "id": "sub_..." }.