Chapter 26. Working with Web-Based Forms

WHAT YOU’LL LEARN IN THIS CHAPTER:

• How HTML forms work

• How to create the front-end of an HTML form

• How to name pieces of form data

• How to include hidden data in forms

• How to choose the correct form input controls for the situation

• How to submit form data

• Using the form object with JavaScript

• Sending form results by email

• Validating a form with JavaScript

To this point, pretty much everything in this book has focused on getting information out to others. But you can also use your web pages to gather information from the people who read them.

Web forms enable you to receive feedback, orders, or other information from the users who visit your web pages. If you’ve ever used a search engine ...

Get Sams Teach Yourself HTML, CSS and JavaScript All in One now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.