I built a thing that makes static sites, including form handling. BUT, the form handling, inevitably, requires a POST request back to a form-forwarding server that then sends you the enquiry via email (https://pinkpigeon.co.uk). Netlify include form handling for static sites, but it's so pricey that that was one of the main motivators for me to build my own solution.
I am not sure what the best implementation for this would be. Some people may go down the AWS Lambda route or something similar, but that's still just a (albeit highly distributed) server forwarding the request for you.
I wrote a little script and placed it on Lambda and it still works years later. There are plenty of pre-packaged examples and templates to do the same.
A simple "static forms" search will show you several hosted and self-hosted options.
I believe this can be used to process forms (temporary).
The free tier is enough for a small blog.
[1] https://developers.cloudflare.com/workers/learning/how-kv-wo...
* read from or change db records, possibly not self contained (directly accessing WP tables)
* be generated from a schema that allows for both frontend and backend validation
* said schema might be generated from or amended by db records
* authenticate with and talk to arbitrary external or internal services
* write to and read from the/a file system
* have an authentication and authorization scheme, possibly maintained via sessions
* send formatted email
* ...
So depending on where the service sets its boundary, it becomes either useless or too complex, when the alternative is to just write a module in PHP.
I've been using this for years: https://formspree.io/
It's been simple and reliable for me and you can use it as just a regular <form> without JS.
All of this without paying $25/month for managed WordPress.
PS: You could actually do better: Use Github pages and Cloudflare pages and do DNS load balancing between the two.
From the title I thought they managed to run WordPress in CF Workers or something, but no, you still need a machine to run the PHP and database, whether local or remote.
For more reasons to not use Cloudflare: https://git.honeypot.im/crimeflare/stop-cloudflare/src/branc...