Forms on a Static Site Print

  • staticsitesmodernframeworks, static, php, spam, troubleshooting, email, woocommerce, guide
  • 0

Collecting submissions without a server.

THE PROBLEM

A static site has nothing to process a form submission.

THE OPTIONS

A form service that receives submissions and emails them A small PHP script on the same hosting A serverless function

THE PHP OPTION

Since our hosting runs PHP, a simple script can handle a static site's form.

Simplest if you are hosting here anyway.

Build it properly: fixed recipient, validation, spam protection.

THE SERVICE OPTION

Point your form at a third-party endpoint.

Simple, and it adds a dependency and a data-processing consideration.

WHAT TO CHECK WITH A SERVICE

Where submissions are stored Who can access them What it costs at your volume What happens if it disappears

THE DATA POINT

A third-party service processing your enquiries holds personal data.

Consider what your privacy notice must say.

WHAT NOT TO DO

Build a form with a recipient address taken from the submission.

That turns your site into a spam relay.


Was this answer helpful?
Back

Are you happy with your experience? Leave us a review on Trustpilot.


Trustpilot