Figures from Chapter 10
- Figure 10.2 -- Listing for the example Bourne-shell script CGI gateway program srch-example.
- Figure 10.7 -- Listing for the example Bourne-shell script srch-example-2. This is essentially the same script shown in Figure 10.2, but modified to explicitly print out the command-line arguments and some of the environment variables.
- Figure 10.9 -- Listing for the test program form1 accessed by the HTML form in Figure 9.9. This script returns an HTML document listing the script command-line arguments (if there are any), the contents of all the environment variables, and any data read from standard input (if any exists).
- Figure 10.11 -- Perl code extract for decoding form data passed in a query string. Note that this is not a functional piece of code and that the extracted name and value strings must be place in a permanent storage location (such as an associative array) for subsequent processing.
- Figure 10.13 -- Perl code extract for decoding form data passed to the program via standard input. Differences from the extract in Figure 10.11 are shown in italics. Note that this is not a functional piece of code, and that the extracted name and value strings must be placed in a permanent storage location (such as an associative array) for subsequent processing.