quiz in
astronomy.
If you use your browser to view the document source
for one of the science quiz question pages
(i.e., one of the pages in the quiz that asks, not answers, a question),
you'll
note the line:
<form method="post" action="/cgi-bin/quizforms/galileo/qa.pl">
From this we see that the information entered into this form is processed by a
program called qa.pl
(on the same machine as the form, which is why you don't
see an http-type url assigned to action= in this case).
This program is a Perl
script that has been written specifically to handle the information submitted
by this one form. Rather than simply echoing entered text as
post-query does,
qa.pl examines the
submitted information, extracts the part that corresponds to the answer
to the question, compares this to the correct answer for the question (which is
stored in a database on the server), and then
presents the user with one of various possible pages depending on whether or not
the correct answer to the question was entered. This illustrates that
a gateway script can do much more than simply echo arbitrary text. If you are
interested, here is a listing of the
Perl program qa.pl.
References
For additional information about CGI, see this Programming
References page.