Handling Form Data
In this chapter, I demonstrate the ways that Node.js applications can receive form data and explain the differences, including supporting uploading files. This chapter also explains how to sanitize form data so that it can be safely included in HTML documents, and how to validate data before it is used. Table 11.1 puts this chapter in context.
Table 11.1: Putting HTML forms in context
Question |
Answer |
What are they? |
HTML forms allow users to provide data by entering values into form fields. |
Why are they useful? |
Forms are the only ways in which data values can be collected from users in a structured way. |
How are they used? |
HTML documents... |