Demo: Form Submission

This is a demonstration of Cloudflare Pages with Functions.

Pages deployed a /public directory, containing a HTML document (this webpage) and a /functions directory, 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.