Zephos Formsby Zephos

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.

  1. Create a free account and a form. Copy its access key.

  2. Paste this form where you want it, and replace YOUR_ACCESS_KEY with 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>
  3. 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>
  4. Submit the form once from your live site. The submission shows up in your dashboard and in your inbox.

Good to know

Other guides: Astro · Lovable