>for key in form.keys():
>    if not form.has_key(key): # it will always be True

try this:

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.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to