[Tutor] How to generate a form using cgi

Ms Soo Chong s4046441 at student.uq.edu.au
Wed Aug 18 08:37:16 CEST 2004


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.


More information about the Tutor mailing list