14.4. Passing data to CGI applications: name/value pairs

Passing data to CGI applications is an important subject and is the first step for all kinds of server programming. Different server technologies such as Perl, PHP, and ASP may have different command names and data-passing procedures. Fortunately, they are all based on the same structure (CGI structure) and philosophy under the HTTP.

Basically, there are two data-passing methods used in CGI applications, namely, the get and post methods. You can specify them in the method attribute in a form. Basically, you pass information with a name and the value of that name, i.e., a name/value pair. Since data-passing methods and name/value pairs are the secret and success of all CGI applications, ...

Get Practical Web Technologies 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.