✓ Standard HTML form • Backend runs on Web2Phone (not your hosting)

HTML Contact Form Backend
Send Submissions Without Building Your Own Server Code

An HTML contact form is just the front end. To actually receive submissions you need a backend to accept the POST, validate it, block abuse, and deliver it to you. Web2Phone provides that backend on our servers — you keep your HTML form and add a small snippet.

Works for portfolio sites, static sites, landing pages, and client websites.

Quick start

Build the form first — then connect it:

Why HTML Forms “Don’t Work” by Themselves

This is the part beginners learn the hard way: HTML can submit data, but it can’t process it. Without a backend, your form either does nothing useful or relies on fragile workarounds.

  • Static hosting can’t run server-side code to receive POST requests.
  • Email-only form handlers fail silently (spam filtering, DNS auth, host restrictions).
  • Rolling your own backend means deployments, spam protection, and ongoing maintenance.
  • Plugins add complexity and create future support problems.

Web2Phone solves this by handling the backend for you. We receive submissions, apply protections, attempt delivery to your chosen channels, and store a record in your dashboard.

✓ What You Get

  • Works with a standard HTML form (keep your fields + styling)
  • Backend processing on Web2Phone (not on your hosting)
  • Deliver to email, WhatsApp, or both (you choose per endpoint)
  • Domain allow-listing, rate limiting, and automated checks
  • Dashboard record so submissions don’t vanish

What an HTML Form Backend Actually Does

If you’re building client sites or portfolio projects, knowing this makes you look competent. A real form backend isn’t “send an email” — it’s a chain of responsibilities.

Receive + validate

Accept the POST request, validate required fields, and reject malformed requests.

Protect against abuse

Rate limiting, domain restrictions, and automated spam checks to reduce bot submissions.

Deliver + keep a record

Attempt delivery to your chosen channels and store a dashboard record even if delivery fails.

Set Up in 3 Steps

Keep your HTML. Web2Phone receives the submission on our backend, attempts delivery, and logs it in your dashboard.

1

Create an Endpoint

Sign up, create an endpoint, pick delivery (email, WhatsApp, or both), and add allowed domains.

2

Add Attributes + Script

Add your public key and endpoint URL to the form and include the embed script.

Receive + Log

Web2Phone attempts delivery to your chosen channels and stores the submission in your dashboard.

Example: HTML Form + Web2Phone Backend

<form data-web2phone="form"
      data-public-key="YOUR_PUBLIC_KEY"
      data-endpoint="https://web2phone.co.uk/api/v1/submit/">

  <input type="text" name="name" placeholder="Your name" required>
  <input type="email" name="email" placeholder="Your email" required>
  <textarea name="message" placeholder="Your message" required></textarea>

  <button type="submit">Send</button>
  <p data-w2p-output></p>
</form>

<script src="https://web2phone.co.uk/static/formsapp/js/embed.js"></script>

Note: If you enable domain allow-listing, submissions must originate from an allowed domain (based on Origin/Referer headers).

Email is useful as a searchable record — but it can fail silently. Many users also deliver submissions to WhatsApp so they don’t miss time-sensitive enquiries.

Contact Form to WhatsApp →

Common Mistakes (And How to Fix Them)

If your HTML contact form backend setup isn’t working, it’s usually one of these.

Missing name attributes

Inputs must have name values (e.g. name="email") or your submission will be empty/useless.

Domain allow-listing mismatch

If enabled, the request must come from an allowed domain. Add your real domain (and staging domain) in your endpoint settings.

Testing from file:// or restricted previews

Local files and some preview environments don’t send reliable Origin/Referer. Test from a proper URL.

Embed script blocked

Strict CSP, privacy tools, or ad blockers can block scripts. Temporarily test in a clean browser profile.

Another script hijacks the submit

Some themes/builders intercept submits. Verify with a plain HTML form to isolate the issue.

No output element for feedback

Add <p data-w2p-output></p> so users see success/error messages after submitting.

Use Web2Phone as Your HTML Form Backend

Keep your HTML form. Web2Phone receives submissions on our backend, attempts delivery to your chosen channels, and stores a dashboard record so enquiries don’t vanish.

✓ Free plan available • ✓ No credit card required • ✓ Setup in minutes

Already want WhatsApp delivery? See Contact Form to WhatsApp.