Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
We will now take a look at some of the more advanced aspects of CGI programming. These include: the use of cookies—cached data saved on the client side, multiple values for the same CGI field and file upload using multipart form submissions. To save space, we will show you all three of these features with a single application. Let's take a look at multipart submissions first.
Currently, the CGI specifications only allow two types of form encodings, “application/x-www-form-urlencoded” and “multipart/form-data.” Because “application/x-www-form-urlencoded” is the default, there is never a need to state the encoding in the FORM tag like this: