[Tutor] How to generate a form using cgi

Kent Johnson kent_johnson at skillsoft.com
Wed Aug 18 12:57:04 CEST 2004

This page has a good example:

At 04:37 PM 8/18/2004 +1000, Ms Soo Chong wrote:
>Sorry is me again...
>Can anyone show me a simple example of generating a
>form using CGI module? Thank you.
>I got quite confused with this:
>def main():
>     form = cgi.FieldStorage()
>Where should I type in the HTML code that generate the
>form and text box?
>This site shows a typical CGI script. Is this an
>example of a form? I tried to type in the same
>stuffs and tried to generate but I got error
>message. Can someone tell me the reason behind?
>Thank you.
>Tutor maillist  -  Tutor at python.org

More information about the Tutor mailing list