
The CGI script called by the test form looks like:
#!/bin/sh # read TEXT # echo Content-type: text/html echo echo "<html>" echo "<head>" echo "<TITLE>This is a CGI test Script</TITLE>" echo "</head>" echo "<body>" echo "<h2>CGI Test Script</h2>" echo "<p>" echo "$TEXT" echo "</body>" echo "</html>"The "#" sign creates a comment. The first comment identifies this program as a Bourne Shell Script made up of Unix commands.
The Unix read command reads the output from the form while the echo creates the HTML which will be shown to the consumer. Notice that near the end of this script there is an echo command which echos the TEXT variable read from the form and embeds it in the new outgoing page.