[Pythonmac-SIG] reading text from HTML form to Python using CGI

Proboscis Admin admin at proboscis.org.uk
Tue Sep 9 14:06:57 EDT 2003


Hello,

I have an HTML form and I need to get the user input to my Python 
code.Im not experienced with python.Im using CGI which seems to be fine 
except that im getting a key error because of the cgi.py module which 
is raising an exception as it is not finding the key. in the html form 
the action refers to the python code which contains the cgi and I have 
used the same names as the <input name> in both html and python but i 
think im not knowing how to refer the python program to that form page.

Could you please advice. Or even basic code of what must be in the CGI 
for it to read the form.

thank you




More information about the Pythonmac-SIG mailing list