[Tutor] cgi.FieldStorage and dictionary.get(' ')

hugonz at h-lab.net hugonz at h-lab.net
Fri Dec 31 05:03:16 CET 2004


> Strangely, the calls to print form.get('author') and
> form.get('password') don't appear in the output. Only the form.keys()
> appears.

I don't have this  on the top of my head, but I'm pretty sure you have to
get the 'value' attribute, as in:

print form.get('password').value

do a dir (form.get('password')) and see what attributes are available...

Hugo


More information about the Tutor mailing list