HTML guide
A working HTML contact form, with no backend
A plain HTML form can only send data somewhere. Point it at Formcrate and each submission is spam-checked, emailed to you and saved in your inbox. No server, PHP or JavaScript needed.
1Create a form and copy its key
Sign up with Google, create a form and enter the email address that should receive submissions. Copy the form key from the dashboard: it replaces
YOUR_FORM_KEYbelow. The free plan includes 500 submissions a month.2Paste the form
Set the form
actionto your endpoint andmethodto POST. Every named field is included in the email and saved with the submission, so add or remove fields freely.contact.html<form action="https://www.formcrate.dev/api/submit/YOUR_FORM_KEY" method="POST"> <label>Name <input type="text" name="name" required /></label> <label>Email <input type="email" name="email" required /></label> <label>Message <textarea name="message" rows="5" required></textarea></label> <!-- Spam trap: hidden from people, filled in by bots --> <input type="text" name="_gotcha" style="display:none" tabindex="-1" autocomplete="off" /> <button type="submit">Send</button> </form>
3Send visitors to your own thank-you page (optional)
By default visitors see a Formcrate confirmation page. To keep them on your site, add a hidden
redirectTofield, or set a redirect URL once in the form settings.HTML<input type="hidden" name="redirectTo" value="https://yoursite.com/thanks.html" />
4Send a test submission
Fill in the form on your site and submit it. The message appears in your Formcrate inbox and arrives by email within a few seconds. Anything that looks like spam goes to the Spam tab instead and isn't emailed.
5Lock the form to your domain
Your key is visible in the page source, which is normal for form backends. In the form settings, add your domain under Domain lock so other websites can't post to your form from the browser.
Tips
- Name the email field
email: replies to the notification then go straight to the sender. - Add a hidden
subjectfield to change the email subject line for this form.
Get your HTML form working
Free for 500 submissions a month. Spam filtering, email alerts and an inbox included. No card required.