[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:
http://www.devshed.com/c/a/Python/Writing-CGI-Programs-in-Python/5/


At 04:37 PM 8/18/2004 +1000, Ms Soo Chong wrote:
>Hi,
>
>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()
>main()
>
>Where should I type in the HTML code that generate the
>form and text box?
>
>http://www.python.org/doc/essays/ppt/sd99east/sld041.htm
>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.
>
>Cheers,
>Shufen
>
>
>
>
>_______________________________________________
>Tutor maillist  -  Tutor at python.org
>http://mail.python.org/mailman/listinfo/tutor



More information about the Tutor mailing list