Contact form for plain HTML
No framework, no build step: point a regular HTML form at your Pasteform endpoint. Without JavaScript the visitor is redirected to a thank-you page (yours or ours). Add the optional script to submit in place.
Get my free form link Replace YOUR_FORM_ID below with your form ID, or copy the snippets from your dashboard where it's already filled in.
Step by step
- Create a form in Pasteform and copy the snippet; the
actionalready contains your form ID. - Paste it into your page. Every input needs a
name; that's the label you'll see in notifications. - Optional: add
<input type="hidden" name="_redirect" value="https://yoursite.com/thanks.html">and<input type="hidden" name="_subject" value="New enquiry">. - Add your domain to Allowed domains. To test a local file, use a local server (
npx serve) and addlocalhost.
index.html
<form action="https://forms.prizenlabs.com/f/YOUR_FORM_ID" 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" required></textarea></label> <input type="text" name="_gotcha" style="display:none" tabindex="-1" autocomplete="off"> <button type="submit">Send</button> </form>
Optional: submit without leaving the page
<script>
// Optional: submit without leaving the page.
document.querySelectorAll('form[action="https://forms.prizenlabs.com/f/YOUR_FORM_ID"]').forEach((form) => {
form.addEventListener("submit", async (e) => {
e.preventDefault();
const button = form.querySelector('button[type="submit"]');
button.disabled = true;
try {
const res = await fetch(form.action, {
method: "POST",
headers: { Accept: "application/json" },
body: new FormData(form),
});
const data = await res.json();
if (!res.ok || !data.success) throw new Error(data.message);
form.innerHTML = "<p>Thanks! We'll be in touch soon.</p>";
} catch (err) {
alert(err.message || "Sorry, something went wrong. Please try again.");
button.disabled = false;
}
});
});
</script>
Allowed domains
Add your domain. Pages opened as file:// send no Origin, so test through a local server.
Common pitfalls
- Inputs without a
nameattribute are not sent by the browser. - File inputs are not supported yet. Use a link to a shared file instead.
What you get
- Email notifications with Reply-To set to your visitor, plus optional Slack, Discord, Telegram or webhook alerts.
- Spam protection: honeypot, rate limits, domain allow-list, optional Cloudflare Turnstile.
- Submissions stored for as long as you choose (or not at all), with CSV export and one-click deletion.
- Free for 250 submissions a month; Pro is $9/month for 5,000.
Make your plain HTML form send
Free form link in about 2 minutes. No credit card.
Get my free form linkGuides for other platforms
Lovable · Bolt · v0 · Framer · Webflow · Astro · Next.js · Hugo · Jekyll · GitHub Pages · Netlify · Vercel · WordPress (static export) · Carrd