View on GitHub

reading-notes

CodeFellows Class Reading Notes

Sending Form Data

Client/Server Architecture

Overview: a client (such as a web browser) sends a request to a server using the HTTP protocol. The server answers the request using the same protocol.

An HTML form is a user-friendly way to configure that HTTP request. <form> elements define how the data will be sent

On the Server Side: Retrieving the Data

A Special Case: Sending Files

To send a file:

  1. Set method to POST (files cannot be put inside a URL)
  2. Set value of enctype to multipart/form-data
  3. Include one or more <input type="file"> controls

Security Issues

Good Practices Include:


Home