Introduction
In this exercise, you will create a set of Python scripts that display values coming from a Web Form. You should read the explanation of how CGI Python works in the following paragraphs and build the scripts and webpages as you go along. In short, you should create a small proof-of-concept application to test a typical webservice workflow, as shown in figure 1:
- An HTML page that contains the `favorite sport' form, to collect the input;
- When submitted, this page sends the contents of the form to a second page containing server side script. This so--called CGI script will contain Python code that reads the contents of the form, processes it, and uses the write method to display the output to the user.
Note that this will only be a first and very limited introduction to the many possibilities of server--side Python scripts...
