How to add a contact form to an HTML website without a server
A static website cannot receive a form by itself. Point the form at a hosted form service, which stores each response and can notify you: use a hosted link, an embed, or your own HTML connected to the service.
Create a contact form in Spokegrid Forms →Why a plain HTML form is not enough
An HTML form only collects input. Something has to accept the submission, validate it, store it and tell you it arrived. On a static host there is no program doing that unless you add one or connect a service.
Three ways to connect
- Hosted link: share a page where the form already works. No code.
- Embed: paste a snippet and let the service render the fields.
- Your own HTML: keep your design and send the fields to the service with JavaScript, or from your server with a private token.
Before you publish
- Allow your exact website origin, including or excluding www as your site really serves it.
- Never put a private server token in HTML or browser JavaScript.
- Turn on spam controls and check the spam folder after testing.
- Send a real response from the live page and confirm it reaches the inbox.
Useful answers before you start.
Can I use a form service on any host?
Any host that lets you add your own HTML and scripts can use an embed or custom HTML integration. A hosted form link works even when you cannot edit the site.
Why does my form work locally but not on the live site?
A common cause is that the live origin has not been allowed in the form settings. The origin must match exactly, including https and any www prefix.
Keep reading
- How to write a project proposal a client can say yes to
- GST invoice format in India: the details to include
- Favicon sizes: the files a website actually needs
- Freelance agreement checklist: what to settle before you start
- How to make a project timeline your client can follow
- Getting a website found by search engines and AI answers