Some newbie cgi form questions...

Diez B.Roggisch deets at web.de
Sun Aug 7 15:10:01 EDT 2005


> Traceback (most recent call last):
>   File "/var/www/users/senta/html/gobooks/cgi/form.py", 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.

Diez






More information about the Python-list mailing list