Some newbie cgi form questions...

Diez B.Roggisch deets at
Sun Aug 7 21:10:01 CEST 2005

> Traceback (most recent call last):
>   File "/var/www/users/senta/html/gobooks/cgi/", line 35, in ?
>     if not form.keys()[key]:
> TypeError: list indices must be integers
> As you can see,  I am using python 2.3 (my web service provider is
> responsible for this - I'd use 2.4.1 if I could)

That code above can't work - you want something like

if not form.keys() in key:

Try reading the error messages. And google them.


More information about the Python-list mailing list