Demo: Form Submission
This is a demonstration of Cloudflare Pages with Functions.
Pages deployed a
/publicdirectory, containing a HTML document (this webpage) and a/functionsdirectory, which contains the Cloudflare Workers code for the API endpoint this<form>references.NOTE: On form submission, the API endpoint responds with a JSON representation of the data. There is no JavaScript running in this example.