Skip to content

HTML Forms Handbook

Forms are where users actually sign up, pay you, and send data to your app, yet they are often the clunkiest part of a website. Broken validation, lost input on error, and flaky file uploads frustrate real people every day.

This book shows you how to lean on everything the browser already gives you, handle uploads and validation cleanly on the server, and protect public endpoints without making forms painful to use.

Table of contents (10 chapters)
  1. How HTML forms work over HTTP
  2. Part 1: Complete HTML Forms Guide
  3. HTML forms
  4. Handling forms in JavaScript
  5. How to use the FormData object
  6. Part 2: Server Handling, File Uploads, Autofill, and Security
  7. Form Actions
  8. Handling forms in Express
  9. Handling file uploads in forms using Express
  10. Harden a public form endpoint

Get the HTML Forms Handbook for free: subscribe to my newsletter and I'll send it your way, together with all my other free programming ebooks.

Want the whole collection? See all my free ebooks.

By subscribing you agree to receive my newsletter (new tutorials, book releases, and courses). You can unsubscribe anytime from the link at the bottom of every email. Your email is the only data collected, stored securely in the EU, and never shared.