You can now build a small application of classifieds for our friends. You will have three fields, a description and a contact e-mail ID. Write the following in cgi-bin/ form.py: The string htmCpage is almost a static HTML page but with a few variables. The value for these variables is substituted in the print statement. Point your browser.

You can enter the data, but not much happens. When you display the form initially, ther:e will be no data in the form. The same program is being called when the form is 'actioned'. So, your code has to be able to differentiate between the two states. You will need to make use of the cgi module and add some Python code.