Some newbie cgi form questions...
jolafix at gmail.com
Sun Aug 7 05:34:38 EDT 2005
>for key in form.keys():
> if not form.has_key(key): # it will always be True
for key in form.keys():
if not form.keys()[key]: # True if it's a value is None
Well, I don't exactly know the methods of the CGI module, but there are
ways to access form data in Apache's mod_python module. There you have
a method to access the data from the form, (and it does exactly whet
the CGU module does), and you have an option flag wheter to ignore
empty fields or not.
More information about the Python-list