NETLIFY FORMS TEST
Forms, because apparently websites need paperwork too.
These examples use Netlify's built-in form handling. After deployment, enable Form detection in Netlify under Forms.
1. Standard form submission
This uses a normal HTML POST. Netlify detects the form from data-netlify="true".
2. File upload
This demonstrates a Netlify Forms file upload. The browser submits the form as multipart/form-data.
3. AJAX form submission
This form submits with fetch() using URL-encoded form data, so the page does not navigate away.
What to check in Netlify
After a successful deploy, go to Forms in the Netlify dashboard. You should see contact, file-upload, and ajax-feedback as separate forms. Verified submissions appear there, and spam-filtered submissions can be viewed separately.
Netlify automatically sanitizes submitted form content. For personally identifiable information, Netlify recommends exporting submissions and deleting them regularly. File uploads containing PII should use the Very Good Security integration.