Every guide uses the same idea: set your form's action to https://app.submityourform.com/f, its method to POST, and add a hidden _form_key field with the key from your SubmitYourForm dashboard. The form key is public; it only lets people send to your form.
<form action="https://app.submityourform.com/f" method="POST">
<input type="hidden" name="_form_key" value="YOUR-FORM-KEY">
<input type="text" name="name" required>
<input type="email" name="email" required>
<textarea name="message" required></textarea>
<input type="text" name="_honeypot" tabindex="-1" autocomplete="off" style="display:none">
<button type="submit">Send</button>
</form>
Plain HTML
Any page, any host. Special fields let you set the email subject, reply-to address, redirect page and more. See HTML forms.
React and Next.js
Use the @submityourform/react hook for loading states, field errors and resets, or post with fetch. See React & Next.js.
Astro
A normal HTML form works in Astro; keep the form key in a PUBLIC_ environment variable. See Astro & static sites.
Hugo, Jekyll, Eleventy and other static site generators
Put the HTML form in a partial or include and reuse it on any page. Nothing to install and no server functions. See Astro & static sites.
GitHub Pages, Netlify, Cloudflare Pages, Azure Static Web Apps
Static hosts can't run form code, which is exactly what SubmitYourForm is for. Paste the HTML above and deploy as usual.
Webflow, Framer, WordPress and other site builders
Set the form's action to https://app.submityourform.com/f, the method to POST, and add a hidden field named _form_key. Turn off the builder's own form handling so it doesn't intercept the submit. See Astro & static sites.
No website yet?
Build a form in the visual form builder and share it as a hosted page with its own link, or embed it with an iframe. Start free.
Next steps
- Validation & spam: required fields, field rules, honeypots and captchas.
- File uploads: attach files to submissions.
- Webhooks and integrations: send entries to your own server and tools.
- Form gallery: ready-made templates for common forms.